mirror of
https://github.com/werkraum-media/thuecat.git
synced 2024-11-05 21:06:11 +01:00
Daniel Siepmann
9176ba0cec
Allows to import entity of type TouristAttraction. Right now only in German, as this is most important. Add output of tourist attraction via custom content element.
18 lines
507 B
PHP
18 lines
507 B
PHP
<?php
|
|
|
|
defined('TYPO3') or die();
|
|
|
|
(static function (string $extensionKey, string $tableName) {
|
|
$languagePath = \WerkraumMedia\ThueCat\Extension::getLanguagePath()
|
|
. 'locallang_tca.xlf:' . $tableName;
|
|
|
|
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItemGroup(
|
|
$tableName,
|
|
'CType',
|
|
\WerkraumMedia\ThueCat\Extension::TT_CONTENT_GROUP,
|
|
$languagePath . '.group'
|
|
);
|
|
})(
|
|
\WerkraumMedia\ThueCat\Extension::EXTENSION_KEY,
|
|
'tt_content'
|
|
);
|