forked from Ecodev/speciality
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
37 lines (32 loc) · 1.45 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
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('speciality', 'Configuration/TypoScript', 'Speciality: main template');
# Add user TSConfig
$basePath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('speciality');
// Default User TSConfig to be added in any case.
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:speciality/Configuration/UserTS">
');
// New icons for the BE
// if (TYPO3_MODE === 'BE') {
//
// $icons = array('category', 'comment', 'storage', 'news', 'people');
// foreach ($icons as $icon) {
//
// \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon(
// 'pages',
// 'contains-' . $icon,
// \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('speciality') . 'Resources/Public/Backend/Icons/' . $icon . '.png');
//
// $GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = array(
// ucfirst($icon),
// $icon,
// \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('speciality') . 'Resources/Public/Backend/Icons/' . $icon . '.png'
// );
// }
// }
# Use Flux Core API for registering extension provider.
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('speciality', 'Page');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('speciality', 'Content');