-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
24 lines (19 loc) · 1.04 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
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function () {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Webschmiede.SessionPopup',
'Sessionpopup',
'Session Popup',
'EXT:session_popup/Resources/Public/Icons/user_plugin_sessionpopup.svg'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('session_popup', 'Configuration/TypoScript', 'Session Popup');
}
);
// Add flexforms for frontend plugin
$extensionName = \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY);
$pluginSignature = strtolower($extensionName) . '_sessionpopup';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/SessionpopupPlugin.xml');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature]='layout,select_key,recursive,pages';