forked from cdaecke/md_news_author
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
30 lines (24 loc) · 1.31 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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Mediadreams.' . $_EXTKEY,
'NewsAuthor',
'News author'
);
// add static template
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'News Author');
// add Context Sensitive Help (CSH)
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_mdnewsauthor_domain_model_newsauthor', 'EXT:md_news_author/Resources/Private/Language/locallang_csh_tx_mdnewsauthor_domain_model_newsauthor.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_news_domain_model_news', 'EXT:md_news_author/Resources/Private/Language/locallang_csh_tx_news_domain_model_news.xlf');
// allow author records on standard pages
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_mdnewsauthor_domain_model_newsauthor');
// add plugin configuration
$pluginSignature = strtolower(str_replace('_', '', $_EXTKEY) . '_NewsAuthor');
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
// add flexform
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
$pluginSignature,
'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/newsAuthor.xml'
);