mirror of
https://github.com/werkraum-media/thuecat.git
synced 2024-11-05 12:56: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.
27 lines
949 B
PHP
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');
|