-
Notifications
You must be signed in to change notification settings - Fork 1
/
ext_tables.php
16 lines (12 loc) · 1.18 KB
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(function($extKey) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($extKey, "Configuration/Typoscript", "TimeLine");
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_timeline_domain_model_timelineevent', 'EXT:timeline/Resources/Private/Language/locallang_db.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_timeline_domain_model_timelineevent');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue("*", 'FILE:EXT:' . $extKey . '/Configuration/FlexForms/flexform_timeline.xml');
}, "timeline");
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon("timeline-icon", \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, ['source' => 'EXT:timeline/Resources/Public/Icons/Timeline.svg']);
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']["timeline_pi1"] = 'recursive';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']["timeline_pi1"] = 'pi_flexform,tx_timeline_timelineevents';