forked from pixelant/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathext_tables.php
80 lines (73 loc) · 4.47 KB
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (TYPO3_MODE === 'BE') {
/**
* Registers a Backend Module
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'TYPO3\CMS.' . $_EXTKEY,
'system', // Make module a submodule of 'user'
'dashboardmod1', // Submodule key
'', // Position
array(
'Dashboard' => 'index, change, create, createWidget, renderWidget',
),
array(
'access' => 'user,group',
'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.png',
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_dashboardmod1.xlf',
)
);
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Dashboard');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_dashboard_domain_model_dashboard', 'EXT:dashboard/Resources/Private/Language/locallang_csh_tx_dashboard_domain_model_dashboard.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_dashboard_domain_model_dashboard');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_dashboard_domain_model_dashboardwidgetsettings', 'EXT:dashboard/Resources/Private/Language/locallang_csh_tx_dashboard_domain_model_dashboardwidgetsettings.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_dashboard_domain_model_dashboardwidgetsettings');
$GLOBALS['TCA']['tx_dashboard_domain_model_dashboardwidgetsettings']['ctrl']['requestUpdate'] = 'widget_identifier';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['dashboard'] = array(
'widgets' => array(
\TYPO3\CMS\Dashboard\DashboardWidgets\RssWidget::IDENTIFIER => array(
'name' => 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:dashboardWidget.rsswidget.name',
'description' => 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:dashboardWidget.rsswidget.description',
'icon' => 'EXT:dashboard/Resources/Public/Icons/RssWidget.png',
'class' => 'TYPO3\\CMS\\Dashboard\\DashboardWidgets\\RssWidget',
'template' => 'EXT:dashboard/Resources/Private/Templates/DashboardWidgets/RssWidget.html',
'defaultWidth' => '3',
'defaultHeight' => '5',
'minWidth' => '3',
),
\TYPO3\CMS\Dashboard\DashboardWidgets\ActionWidget::IDENTIFIER => array(
'name' => 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:dashboardWidget.actionwidget.name',
'description' => 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:dashboardWidget.actionwidget.description',
'icon' => 'EXT:dashboard/Resources/Public/Icons/ActionWidget.png',
'class' => 'TYPO3\\CMS\\Dashboard\\DashboardWidgets\\ActionWidget',
'template' => 'EXT:dashboard/Resources/Private/Templates/DashboardWidgets/ActionWidget.html',
'defaultWidth' => '3',
'defaultHeight' => '5',
'minWidth' => '3',
),
\TYPO3\CMS\Dashboard\DashboardWidgets\SysNewsWidget::IDENTIFIER => array(
'name' => 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:dashboardWidget.sysnewswidget.name',
'description' => 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:dashboardWidget.sysnewswidget.description',
'icon' => 'EXT:dashboard/Resources/Public/Icons/SysNewsWidget.png',
'class' => 'TYPO3\\CMS\\Dashboard\\DashboardWidgets\\SysNewsWidget',
'template' => 'EXT:dashboard/Resources/Private/Templates/DashboardWidgets/SysNewsWidget.html',
'defaultWidth' => '3',
'defaultHeight' => '5',
'minWidth' => '3',
),
\TYPO3\CMS\Dashboard\DashboardWidgets\IframeWidget::IDENTIFIER => array(
'name' => 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:dashboardWidget.iframe.name',
'description' => 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:dashboardWidget.iframe.description',
'icon' => 'EXT:dashboard/Resources/Public/Icons/frameWidget.png',
'class' => 'TYPO3\\CMS\\Dashboard\\DashboardWidgets\\IframeWidget',
'template' => 'EXT:dashboard/Resources/Private/Templates/DashboardWidgets/IframeWidget.html',
'defaultWidth' => '12',
'defaultHeight' => '6',
'minWidth' => '3',
)
)
);