mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-14 05:56:11 +01:00
452 lines
18 KiB
PHP
452 lines
18 KiB
PHP
<?php
|
|
return [
|
|
'ctrl' => [
|
|
'title' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event',
|
|
'label' => 'title',
|
|
'tstamp' => 'tstamp',
|
|
'crdate' => 'crdate',
|
|
'cruser_id' => 'cruser_id',
|
|
'versioningWS' => true,
|
|
'languageField' => 'sys_language_uid',
|
|
'transOrigPointerField' => 'l10n_parent',
|
|
'transOrigDiffSourceField' => 'l10n_diffsource',
|
|
'delete' => 'deleted',
|
|
'enablecolumns' => [
|
|
'disabled' => 'hidden',
|
|
'starttime' => 'starttime',
|
|
'endtime' => 'endtime',
|
|
],
|
|
'searchFields' => 'title,global_id,slug,teaser,details,price_info,street,district,city,zip,country,web,booking,ticket,facebook,youtube,latitude,longitude',
|
|
'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_event.gif'
|
|
],
|
|
'interface' => [
|
|
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, global_id, slug, highlight, teaser, details, price_info, name, street, district, city, zip, country, phone, web, ticket, facebook, youtube, instagram, latitude, longitude, images, categories, dates, organizer, region',
|
|
],
|
|
'types' => [
|
|
'1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, global_id, slug, highlight, teaser, details, price_info, name, street, district, city, zip, country, phone, web, ticket, facebook, youtube, instagram, latitude, longitude, images, categories, dates, organizer, region, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'],
|
|
],
|
|
'columns' => [
|
|
'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,
|
|
],
|
|
],
|
|
'l10n_parent' => [
|
|
'displayCond' => 'FIELD:sys_language_uid:>:0',
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
|
|
'config' => [
|
|
'type' => 'select',
|
|
'renderType' => 'selectSingle',
|
|
'default' => 0,
|
|
'items' => [
|
|
['', 0],
|
|
],
|
|
'foreign_table' => 'tx_events_domain_model_event',
|
|
'foreign_table_where' => 'AND {#tx_events_domain_model_event}.{#pid}=###CURRENT_PID### AND {#tx_events_domain_model_event}.{#sys_language_uid} IN (-1,0)',
|
|
],
|
|
],
|
|
'l10n_diffsource' => [
|
|
'config' => [
|
|
'type' => 'passthrough',
|
|
],
|
|
],
|
|
't3ver_label' => [
|
|
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'max' => 255,
|
|
],
|
|
],
|
|
'hidden' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.visible',
|
|
'config' => [
|
|
'type' => 'check',
|
|
'renderType' => 'checkboxToggle',
|
|
'items' => [
|
|
[
|
|
0 => '',
|
|
1 => '',
|
|
'invertStateDisplay' => true
|
|
]
|
|
],
|
|
],
|
|
],
|
|
'starttime' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'renderType' => 'inputDateTime',
|
|
'eval' => 'datetime,int',
|
|
'default' => 0,
|
|
'behaviour' => [
|
|
'allowLanguageSynchronization' => true
|
|
]
|
|
],
|
|
],
|
|
'endtime' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'renderType' => 'inputDateTime',
|
|
'eval' => 'datetime,int',
|
|
'default' => 0,
|
|
'range' => [
|
|
'upper' => mktime(0, 0, 0, 1, 1, 2038)
|
|
],
|
|
'behaviour' => [
|
|
'allowLanguageSynchronization' => true
|
|
]
|
|
],
|
|
],
|
|
|
|
'title' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.title',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
]
|
|
],
|
|
'global_id' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.global_id',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'slug' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.slug',
|
|
'config' => [
|
|
'type' => 'slug',
|
|
'size' => 50,
|
|
'generatorOptions' => [
|
|
'fields' => ['title'],
|
|
'fieldSeparator' => '/',
|
|
'prefixParentPageSlug' => false,
|
|
],
|
|
'fallbackCharacter' => '-',
|
|
'eval' => 'uniqueInSite',
|
|
'default' => '',
|
|
],
|
|
],
|
|
'highlight' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.highlight',
|
|
'config' => [
|
|
'type' => 'check',
|
|
'items' => [
|
|
'1' => [
|
|
'0' => 'LLL:EXT:lang/locallang_core.xlf:labels.enabled'
|
|
]
|
|
],
|
|
'default' => 0,
|
|
]
|
|
],
|
|
'teaser' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.teaser',
|
|
'config' => [
|
|
'type' => 'text',
|
|
'cols' => 40,
|
|
'rows' => 15,
|
|
'eval' => 'trim'
|
|
]
|
|
],
|
|
'details' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.details',
|
|
'config' => [
|
|
'type' => 'text',
|
|
'enableRichtext' => true,
|
|
'richtextConfiguration' => 'default',
|
|
'fieldControl' => [
|
|
'fullScreenRichtext' => [
|
|
'disabled' => false,
|
|
],
|
|
],
|
|
'cols' => 40,
|
|
'rows' => 15,
|
|
'eval' => 'trim',
|
|
],
|
|
|
|
],
|
|
'price_info' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.price_info',
|
|
'config' => [
|
|
'type' => 'text',
|
|
'cols' => 40,
|
|
'rows' => 15,
|
|
'eval' => 'trim'
|
|
]
|
|
],
|
|
'name' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.name',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'street' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.street',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'district' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.district',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'city' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.city',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'zip' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.zip',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'country' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.country',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'phone' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.phone',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'web' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.web',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'ticket' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.ticket',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'facebook' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.facebook',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'youtube' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.youtube',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'instagram' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.instagram',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'latitude' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.latitude',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'longitude' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.longitude',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim'
|
|
],
|
|
],
|
|
'images' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.images',
|
|
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
|
|
'images',
|
|
[
|
|
'appearance' => [
|
|
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference',
|
|
'showPossibleLocalizationRecords' => true,
|
|
'showRemovedLocalizationRecords' => true,
|
|
'showAllLocalizationLink' => true,
|
|
'showSynchronizationLink' => true,
|
|
],
|
|
'foreign_match_fields' => [
|
|
'fieldname' => 'images',
|
|
'tablenames' => 'tx_events_domain_model_event',
|
|
'table_local' => 'sys_file',
|
|
],
|
|
'foreign_types' => [
|
|
'0' => [
|
|
'showitem' => '
|
|
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
|
|
--palette--;;filePalette'
|
|
],
|
|
\TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => [
|
|
'showitem' => '
|
|
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
|
|
--palette--;;filePalette'
|
|
],
|
|
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
|
|
'showitem' => '
|
|
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
|
|
--palette--;;filePalette'
|
|
],
|
|
\TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => [
|
|
'showitem' => '
|
|
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
|
|
--palette--;;filePalette'
|
|
],
|
|
\TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => [
|
|
'showitem' => '
|
|
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
|
|
--palette--;;filePalette'
|
|
],
|
|
\TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => [
|
|
'showitem' => '
|
|
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
|
|
--palette--;;filePalette'
|
|
]
|
|
],
|
|
'maxitems' => 1
|
|
],
|
|
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
|
|
),
|
|
],
|
|
|
|
'categories' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.categories',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 4,
|
|
'eval' => 'int'
|
|
]
|
|
],
|
|
|
|
'dates' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.dates',
|
|
'config' => [
|
|
'type' => 'inline',
|
|
'foreign_table' => 'tx_events_domain_model_date',
|
|
'foreign_field' => 'event',
|
|
'maxitems' => 9999,
|
|
'appearance' => [
|
|
'collapseAll' => 1,
|
|
'useSortable' => 0,
|
|
'expandSingle' => 1,
|
|
'enabledControls' => array(
|
|
'info' => false,
|
|
'new' => false,
|
|
'dragdrop' => false,
|
|
'sort' => false,
|
|
'hide' => false,
|
|
'delete' => false,
|
|
'localize' => false,
|
|
),
|
|
'levelLinksPosition' => 'top',
|
|
'showPossibleLocalizationRecords' => false,
|
|
'showRemovedLocalizationRecords' => false,
|
|
'showSynchronizationLink' => false,
|
|
'showAllLocalizationLink' => false,
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'organizer' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.organizer',
|
|
'config' => [
|
|
'type' => 'select',
|
|
'renderType' => 'selectSingle',
|
|
'foreign_table' => 'tx_events_domain_model_organizer',
|
|
'minitems' => 0,
|
|
'maxitems' => 1,
|
|
],
|
|
],
|
|
'region' => [
|
|
'exclude' => true,
|
|
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_db.xlf:tx_events_domain_model_event.region',
|
|
'config' => [
|
|
'type' => 'select',
|
|
'renderType' => 'selectSingle',
|
|
'foreign_table' => 'tx_events_domain_model_region',
|
|
'minitems' => 0,
|
|
'maxitems' => 1,
|
|
],
|
|
],
|
|
|
|
],
|
|
];
|