2021-02-03 17:20:01 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
defined('TYPO3') or die();
|
|
|
|
|
|
|
|
return (static function (string $extensionKey, string $tableName) {
|
|
|
|
$languagePath = \WerkraumMedia\ThueCat\Extension::getLanguagePath() . 'locallang_tca.xlf:' . $tableName;
|
|
|
|
|
|
|
|
return [
|
|
|
|
'ctrl' => [
|
|
|
|
'label' => 'title',
|
2021-02-17 15:52:34 +01:00
|
|
|
'iconfile' => \WerkraumMedia\ThueCat\Extension::getIconPath() . $tableName . '.svg',
|
2021-02-03 17:20:01 +01:00
|
|
|
'default_sortby' => 'title',
|
|
|
|
'tstamp' => 'tstamp',
|
|
|
|
'crdate' => 'crdate',
|
|
|
|
'cruser_id' => 'cruser_id',
|
|
|
|
'title' => $languagePath,
|
|
|
|
'enablecolumns' => [
|
|
|
|
'disabled' => 'disable',
|
|
|
|
],
|
|
|
|
'searchFields' => 'title, description',
|
2021-02-16 17:12:47 +01:00
|
|
|
'transOrigPointerField' => 'l18n_parent',
|
|
|
|
'transOrigDiffSourceField' => 'l18n_diffsource',
|
|
|
|
'languageField' => 'sys_language_uid',
|
|
|
|
'translationSource' => 'l10n_source',
|
2021-02-03 17:20:01 +01:00
|
|
|
],
|
|
|
|
'columns' => [
|
2021-02-16 17:12:47 +01:00
|
|
|
'sys_language_uid' => [
|
|
|
|
'exclude' => true,
|
|
|
|
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'select',
|
|
|
|
'renderType' => 'selectSingle',
|
|
|
|
'special' => 'languages',
|
|
|
|
'items' => [
|
|
|
|
[
|
|
|
|
'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages',
|
|
|
|
-1,
|
|
|
|
'flags-multiple',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'default' => 0,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'l18n_parent' => [
|
|
|
|
'displayCond' => 'FIELD:sys_language_uid:>:0',
|
|
|
|
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'select',
|
|
|
|
'renderType' => 'selectSingle',
|
|
|
|
'items' => [['', 0]],
|
|
|
|
'foreign_table' => $tableName,
|
|
|
|
'foreign_table_where' => 'AND ' . $tableName . '.pid=###CURRENT_PID### AND ' . $tableName . '.sys_language_uid IN (-1,0)',
|
|
|
|
'default' => 0,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'l10n_source' => [
|
|
|
|
'config' => [
|
|
|
|
'type' => 'passthrough',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2021-02-03 17:20:01 +01:00
|
|
|
'title' => [
|
|
|
|
'label' => $languagePath . '.title',
|
2021-02-16 17:12:47 +01:00
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
2021-02-03 17:20:01 +01:00
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'size' => 20,
|
|
|
|
'max' => 255,
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'description' => [
|
|
|
|
'label' => $languagePath . '.description',
|
2021-02-16 17:12:47 +01:00
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
2021-02-03 17:20:01 +01:00
|
|
|
'config' => [
|
|
|
|
'type' => 'text',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-10 16:04:29 +02:00
|
|
|
'slogan' => [
|
|
|
|
'label' => $languagePath . '.slogan',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-10 16:18:06 +02:00
|
|
|
'start_of_construction' => [
|
|
|
|
'label' => $languagePath . '.start_of_construction',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-10 16:42:23 +02:00
|
|
|
'sanitation' => [
|
|
|
|
'label' => $languagePath . '.sanitation',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-12 13:28:10 +02:00
|
|
|
'other_service' => [
|
|
|
|
'label' => $languagePath . '.other_service',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-12 13:43:20 +02:00
|
|
|
'museum_service' => [
|
|
|
|
'label' => $languagePath . '.museum_service',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-12 14:05:45 +02:00
|
|
|
'architectural_style' => [
|
|
|
|
'label' => $languagePath . '.architectural_style',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-16 08:02:43 +02:00
|
|
|
'traffic_infrastructure' => [
|
|
|
|
'label' => $languagePath . '.traffic_infrastructure',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-16 08:15:38 +02:00
|
|
|
'payment_accepted' => [
|
|
|
|
'label' => $languagePath . '.payment_accepted',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-16 08:25:54 +02:00
|
|
|
'digital_offer' => [
|
|
|
|
'label' => $languagePath . '.digital_offer',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-16 08:37:15 +02:00
|
|
|
'photography' => [
|
|
|
|
'label' => $languagePath . '.photography',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-16 09:35:47 +02:00
|
|
|
'pets_allowed' => [
|
|
|
|
'label' => $languagePath . '.pets_allowed',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-17 11:50:11 +02:00
|
|
|
'is_accessible_for_free' => [
|
|
|
|
'label' => $languagePath . '.is_accessible_for_free',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-17 14:01:48 +02:00
|
|
|
'public_access' => [
|
|
|
|
'label' => $languagePath . '.public_access',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-17 14:36:26 +02:00
|
|
|
'available_languages' => [
|
|
|
|
'label' => $languagePath . '.available_languages',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-17 15:51:38 +02:00
|
|
|
'distance_to_public_transport' => [
|
|
|
|
'label' => $languagePath . '.distance_to_public_transport',
|
|
|
|
'l10n_mode' => 'prefixLangTitle',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-02-03 17:20:01 +01:00
|
|
|
'opening_hours' => [
|
|
|
|
'label' => $languagePath . '.opening_hours',
|
2021-02-16 17:12:47 +01:00
|
|
|
'l10n_mode' => 'exclude',
|
2021-02-03 17:20:01 +01:00
|
|
|
'config' => [
|
|
|
|
'type' => 'text',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2022-11-28 11:06:54 +01:00
|
|
|
'special_opening_hours' => [
|
|
|
|
'label' => $languagePath . '.special_opening_hours',
|
|
|
|
'l10n_mode' => 'exclude',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'text',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-02-16 12:02:10 +01:00
|
|
|
'address' => [
|
|
|
|
'label' => $languagePath . '.address',
|
2021-02-16 17:12:47 +01:00
|
|
|
'l10n_mode' => 'exclude',
|
2021-02-16 12:02:10 +01:00
|
|
|
'config' => [
|
|
|
|
'type' => 'text',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2022-11-29 11:50:22 +01:00
|
|
|
'url' => [
|
|
|
|
'label' => $languagePath . '.url',
|
|
|
|
'l10n_mode' => 'exclude',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-02-16 15:08:15 +01:00
|
|
|
'media' => [
|
|
|
|
'label' => $languagePath . '.media',
|
2021-02-16 17:12:47 +01:00
|
|
|
'l10n_mode' => 'exclude',
|
2021-02-16 15:08:15 +01:00
|
|
|
'config' => [
|
|
|
|
'type' => 'text',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-02-18 14:54:00 +01:00
|
|
|
'offers' => [
|
|
|
|
'label' => $languagePath . '.offers',
|
|
|
|
'l10n_mode' => 'exclude',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'text',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-23 14:20:36 +02:00
|
|
|
'accessibility_specification' => [
|
|
|
|
'label' => $languagePath . '.accessibility_specification',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'text',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-02-03 17:20:01 +01:00
|
|
|
'remote_id' => [
|
|
|
|
'label' => $languagePath . '.remote_id',
|
2021-02-16 17:12:47 +01:00
|
|
|
'l10n_mode' => 'exclude',
|
2021-02-03 17:20:01 +01:00
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'town' => [
|
|
|
|
'label' => $languagePath . '.town',
|
2021-02-16 17:12:47 +01:00
|
|
|
'l10n_mode' => 'exclude',
|
2021-02-03 17:20:01 +01:00
|
|
|
'config' => [
|
|
|
|
'type' => 'select',
|
|
|
|
'renderType' => 'selectSingle',
|
|
|
|
'foreign_table' => 'tx_thuecat_town',
|
2021-06-08 12:10:06 +02:00
|
|
|
'default' => '0',
|
2021-02-03 17:20:01 +01:00
|
|
|
'items' => [
|
|
|
|
[
|
|
|
|
$languagePath . '.town.unkown',
|
|
|
|
0,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'managed_by' => [
|
|
|
|
'label' => $languagePath . '.managed_by',
|
2021-02-16 17:12:47 +01:00
|
|
|
'l10n_mode' => 'exclude',
|
2021-02-03 17:20:01 +01:00
|
|
|
'config' => [
|
|
|
|
'type' => 'select',
|
|
|
|
'renderType' => 'selectSingle',
|
|
|
|
'foreign_table' => 'tx_thuecat_organisation',
|
2021-06-08 12:10:06 +02:00
|
|
|
'default' => '0',
|
2021-02-03 17:20:01 +01:00
|
|
|
'items' => [
|
|
|
|
[
|
|
|
|
$languagePath . '.managed_by.unkown',
|
|
|
|
0,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-08-18 13:54:18 +02:00
|
|
|
'parking_facility_near_by' => [
|
|
|
|
'label' => $languagePath . '.parking_facility_near_by',
|
|
|
|
'l10n_mode' => 'exclude',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'group',
|
|
|
|
'internal_type' => 'db',
|
|
|
|
'allowed' => 'tx_thuecat_parking_facility',
|
|
|
|
'foreign_table' => 'tx_thuecat_parking_facility',
|
|
|
|
'suggestOptions' => [
|
|
|
|
'tx_thuecat_parking_facility' => [
|
|
|
|
'searchCondition' => 'sys_language_uid IN (0,-1)'
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
2021-02-03 17:20:01 +01:00
|
|
|
],
|
2021-02-16 17:12:47 +01:00
|
|
|
'palettes' => [
|
|
|
|
'language' => [
|
|
|
|
'label' => $languagePath . '.palette.language',
|
|
|
|
'showitem' => 'sys_language_uid,l18n_parent',
|
|
|
|
],
|
|
|
|
],
|
2021-02-03 17:20:01 +01:00
|
|
|
'types' => [
|
|
|
|
'0' => [
|
2022-11-29 11:50:22 +01:00
|
|
|
'showitem' => '--palette--;;language, title, description, slogan, start_of_construction, sanitation, other_service, museum_service, architectural_style, traffic_infrastructure, payment_accepted, digital_offer, photography, pets_allowed, is_accessible_for_free, public_access, available_languages, distance_to_public_transport, opening_hours, special_opening_hours, offers, accessibility_specification, address, url, media, remote_id, --div--;' . $languagePath . '.tab.relations, town, managed_by, parking_facility_near_by',
|
2021-02-03 17:20:01 +01:00
|
|
|
],
|
|
|
|
],
|
|
|
|
];
|
|
|
|
})(\WerkraumMedia\ThueCat\Extension::EXTENSION_KEY, 'tx_thuecat_tourist_attraction');
|