thuecat/Configuration/SiteConfiguration/Overrides/sites.php
Daniel Siepmann 9176ba0cec Import tourist attraction only in German language
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.
2021-02-16 12:01:35 +01:00

27 lines
949 B
PHP

<?php
defined('TYPO3') or die();
(static function (string $extensionKey, string $tableName) {
$languagePath = \WerkraumMedia\ThueCat\Extension::getLanguagePath() . 'locallang_be.xlf:' . $tableName . '.';
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['SiteConfiguration']['site'], [
'columns' => [
'thuecat_api_key' => [
'label' => $languagePath . 'thuecat_api_key',
'config' => [
'type' => 'input',
],
],
],
'types' => [
'0' => [
'showitem' => $GLOBALS['SiteConfiguration']['site']['types']['0']['showitem']
. ', ' . implode(',', [
'--div--;' . $languagePath . 'div.thuecat',
'thuecat_api_key',
]),
],
],
]);
})(\WerkraumMedia\ThueCat\Extension::EXTENSION_KEY, 'site');