2020-07-31 11:35:08 +02:00
|
|
|
<?php
|
|
|
|
return [
|
|
|
|
'ctrl' => [
|
|
|
|
'title' => 'LLL:EXT:legacy_collections/Resources/Private/Language/locallang_tca.xlf:sys_collection',
|
|
|
|
'label' => 'title',
|
|
|
|
'tstamp' => 'tstamp',
|
|
|
|
'crdate' => 'crdate',
|
|
|
|
'descriptionColumn' => 'description',
|
|
|
|
'versioningWS' => true,
|
|
|
|
'origUid' => 't3_origuid',
|
|
|
|
'languageField' => 'sys_language_uid',
|
|
|
|
'transOrigPointerField' => 'l10n_parent',
|
|
|
|
'transOrigDiffSourceField' => 'l10n_diffsource',
|
|
|
|
'default_sortby' => 'crdate',
|
|
|
|
'delete' => 'deleted',
|
|
|
|
'type' => 'type',
|
|
|
|
'rootLevel' => -1,
|
|
|
|
'searchFields' => 'title,description',
|
|
|
|
'typeicon_column' => 'type',
|
|
|
|
'typeicon_classes' => [
|
|
|
|
'default' => 'apps-clipboard-list',
|
|
|
|
'static' => 'apps-clipboard-list',
|
|
|
|
'filter' => 'actions-system-tree-search-open'
|
|
|
|
],
|
|
|
|
'enablecolumns' => [
|
|
|
|
'disabled' => 'hidden',
|
|
|
|
'starttime' => 'starttime',
|
|
|
|
'endtime' => 'endtime',
|
|
|
|
'fe_group' => 'fe_group'
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'columns' => [
|
|
|
|
'sys_language_uid' => [
|
|
|
|
'exclude' => true,
|
|
|
|
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
|
2023-10-25 08:28:18 +02:00
|
|
|
'config' => ['type' => 'language']
|
2020-07-31 11:35:08 +02:00
|
|
|
],
|
|
|
|
'l10n_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' => [
|
2023-10-25 08:28:18 +02:00
|
|
|
['label' => '', 'value' => 0]
|
2020-07-31 11:35:08 +02:00
|
|
|
],
|
|
|
|
'foreign_table' => 'sys_file_collection',
|
|
|
|
'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)'
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'l10n_diffsource' => [
|
|
|
|
'config' => [
|
|
|
|
'type' => 'passthrough',
|
|
|
|
'default' => ''
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'hidden' => [
|
|
|
|
'exclude' => true,
|
|
|
|
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'check',
|
|
|
|
'renderType' => 'checkboxToggle',
|
|
|
|
'default' => 0,
|
|
|
|
'items' => [
|
|
|
|
[
|
2023-10-25 08:28:18 +02:00
|
|
|
'label' => '',
|
2020-07-31 11:35:08 +02:00
|
|
|
1 => '',
|
|
|
|
'invertStateDisplay' => true
|
|
|
|
]
|
|
|
|
],
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'starttime' => [
|
|
|
|
'exclude' => true,
|
|
|
|
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
|
|
|
|
'config' => [
|
2023-10-25 08:28:18 +02:00
|
|
|
'type' => 'datetime',
|
2020-07-31 11:35:08 +02:00
|
|
|
'default' => 0,
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'endtime' => [
|
|
|
|
'exclude' => true,
|
|
|
|
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
|
|
|
|
'config' => [
|
2023-10-25 08:28:18 +02:00
|
|
|
'type' => 'datetime',
|
2020-07-31 11:35:08 +02:00
|
|
|
'default' => 0,
|
|
|
|
'range' => [
|
|
|
|
'upper' => mktime(0, 0, 0, 1, 1, 2038),
|
|
|
|
]
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'fe_group' => [
|
|
|
|
'exclude' => true,
|
|
|
|
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.fe_group',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'select',
|
|
|
|
'renderType' => 'selectSingle',
|
|
|
|
'items' => [
|
2023-10-25 08:28:18 +02:00
|
|
|
['label' => '', 'value' => 0],
|
|
|
|
['label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login', 'value' => -1],
|
|
|
|
['label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.any_login', 'value' => -2],
|
|
|
|
['label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.usergroups', 'value' => '--div--']
|
2020-07-31 11:35:08 +02:00
|
|
|
],
|
|
|
|
'foreign_table' => 'fe_groups'
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'table_name' => [
|
|
|
|
'label' => 'LLL:EXT:legacy_collections/Resources/Private/Language/locallang_tca.xlf:sys_collection.table_name',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'select',
|
|
|
|
'renderType' => 'selectSingle',
|
|
|
|
'special' => 'tables'
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'items' => [
|
|
|
|
'label' => 'LLL:EXT:legacy_collections/Resources/Private/Language/locallang_tca.xlf:sys_collection.items',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'group',
|
|
|
|
'prepend_tname' => true,
|
|
|
|
'allowed' => '*',
|
|
|
|
'MM' => 'sys_collection_entries',
|
|
|
|
'MM_hasUidField' => true,
|
|
|
|
'multiple' => true,
|
|
|
|
'size' => 5
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'title' => [
|
|
|
|
'label' => 'LLL:EXT:legacy_collections/Resources/Private/Language/locallang_tca.xlf:sys_collection.title',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'size' => 60,
|
2023-10-25 08:28:18 +02:00
|
|
|
'required' => true
|
2020-07-31 11:35:08 +02:00
|
|
|
]
|
|
|
|
],
|
|
|
|
'description' => [
|
|
|
|
'label' => 'LLL:EXT:legacy_collections/Resources/Private/Language/locallang_tca.xlf:sys_collection.description',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'text',
|
|
|
|
'cols' => 60,
|
|
|
|
'rows' => 5
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'type' => [
|
|
|
|
'label' => 'LLL:EXT:legacy_collections/Resources/Private/Language/locallang_tca.xlf:sys_collection.type',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'select',
|
|
|
|
'renderType' => 'selectSingle',
|
|
|
|
'items' => [
|
2023-10-25 08:28:18 +02:00
|
|
|
['label' => 'LLL:EXT:legacy_collections/Resources/Private/Language/locallang_tca.xlf:sys_collection.type.static', 'value' => 'static']
|
2020-07-31 11:35:08 +02:00
|
|
|
],
|
|
|
|
'default' => 'static'
|
|
|
|
]
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'types' => [
|
|
|
|
'static' => [
|
|
|
|
'showitem' => '
|
|
|
|
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
|
|
|
|
type,title,table_name,items,
|
|
|
|
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
|
|
|
|
--palette--;;language,
|
|
|
|
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
|
|
|
|
hidden,--palette--;;timeRestriction,fe_group,
|
|
|
|
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
|
|
|
|
description,
|
|
|
|
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
|
|
|
|
',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'palettes' => [
|
|
|
|
'timeRestriction' => ['showitem' => 'starttime, endtime'],
|
|
|
|
'language' => ['showitem' => 'sys_language_uid, l10n_parent'],
|
|
|
|
]
|
|
|
|
];
|