Commit 838d0ee4 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

Merge branch '39-update-tca-for-typo3-v10' into 'master'

Resolve "Update TCA for TYPO3 v10"

Closes #39

See merge request t3o/t3o_membership!10
parents 2f1994ed cf567260
...@@ -42,29 +42,33 @@ return [ ...@@ -42,29 +42,33 @@ return [
], ],
'columns' => [ 'columns' => [
'sys_language_uid' => [ 'sys_language_uid' => [
'exclude' => 1, 'exclude' => true,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
'config' => [ 'config' => [
'type' => 'select', 'type' => 'select',
'foreign_table' => 'sys_language', 'renderType' => 'selectSingle',
'foreign_table_where' => 'ORDER BY sys_language.title', 'special' => 'languages',
'items' => [ 'items' => [
['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1], [
['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0] 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages',
-1,
'flags-multiple'
],
], ],
], 'default' => 0,
]
], ],
'l10n_parent' => [ 'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0', 'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1, 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => [ 'config' => [
'type' => 'select', 'type' => 'group',
'items' => [ 'internal_type' => 'db',
['', 0], 'allowed' => 'tx_t3omembership_domain_model_member',
], 'size' => 1,
'foreign_table' => 'tx_t3omembership_domain_model_member', 'maxitems' => 1,
'foreign_table_where' => 'AND tx_t3omembership_domain_model_member.pid=###CURRENT_PID### AND tx_t3omembership_domain_model_member.sys_language_uid IN (-1,0)', 'minitems' => 0,
'default' => 0,
], ],
], ],
'l10n_diffsource' => [ 'l10n_diffsource' => [
...@@ -73,43 +77,47 @@ return [ ...@@ -73,43 +77,47 @@ return [
], ],
], ],
'hidden' => [ 'hidden' => [
'exclude' => 1, 'exclude' => true,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
'config' => [ 'config' => [
'type' => 'check', 'type' => 'check',
], 'renderType' => 'checkboxToggle',
'default' => 0,
'items' => [
[
0 => '',
1 => '',
]
],
]
], ],
'starttime' => [ 'starttime' => [
'exclude' => 1, 'exclude' => true,
'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:starttime_formlabel',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
'config' => [ 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 13, 'renderType' => 'inputDateTime',
'max' => 20, 'size' => 16,
'eval' => 'datetime', 'eval' => 'datetime,int',
'checkbox' => 0,
'default' => 0, 'default' => 0,
'range' => [ 'behaviour' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) 'allowLanguageSynchronization' => true,
], ],
], ]
], ],
'endtime' => [ 'endtime' => [
'exclude' => 1, 'exclude' => true,
'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:endtime_formlabel',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
'config' => [ 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 13, 'renderType' => 'inputDateTime',
'max' => 20, 'size' => 16,
'eval' => 'datetime', 'eval' => 'datetime,int',
'checkbox' => 0,
'default' => 0, 'default' => 0,
'range' => [ 'behaviour' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) 'allowLanguageSynchronization' => true,
], ],
], ]
], ],
'name' => [ 'name' => [
'exclude' => 0, 'exclude' => 0,
...@@ -143,6 +151,7 @@ return [ ...@@ -143,6 +151,7 @@ return [
'label' => 'LLL:EXT:t3o_membership/Resources/Private/Language/locallang_db.xlf:tx_t3omembership_domain_model_member.end_date', 'label' => 'LLL:EXT:t3o_membership/Resources/Private/Language/locallang_db.xlf:tx_t3omembership_domain_model_member.end_date',
'config' => [ 'config' => [
'type' => 'input', 'type' => 'input',
'renderType' => 'inputDateTime',
'size' => 10, 'size' => 10,
'eval' => 'datetime,required', 'eval' => 'datetime,required',
'checkbox' => 1, 'checkbox' => 1,
...@@ -235,6 +244,7 @@ return [ ...@@ -235,6 +244,7 @@ return [
'label' => 'LLL:EXT:t3o_membership/Resources/Private/Language/locallang_db.xlf:tx_t3omembership_domain_model_member.membership', 'label' => 'LLL:EXT:t3o_membership/Resources/Private/Language/locallang_db.xlf:tx_t3omembership_domain_model_member.membership',
'config' => [ 'config' => [
'type' => 'select', 'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'tx_t3omembership_domain_model_membership', 'foreign_table' => 'tx_t3omembership_domain_model_membership',
'minitems' => 0, 'minitems' => 0,
'maxitems' => 1, 'maxitems' => 1,
......
...@@ -42,29 +42,33 @@ return [ ...@@ -42,29 +42,33 @@ return [
], ],
'columns' => [ 'columns' => [
'sys_language_uid' => [ 'sys_language_uid' => [
'exclude' => 1, 'exclude' => true,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
'config' => [ 'config' => [
'type' => 'select', 'type' => 'select',
'foreign_table' => 'sys_language', 'renderType' => 'selectSingle',
'foreign_table_where' => 'ORDER BY sys_language.title', 'special' => 'languages',
'items' => [ 'items' => [
['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1], [
['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0] 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages',
-1,
'flags-multiple'
],
], ],
], 'default' => 0,
]
], ],
'l10n_parent' => [ 'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0', 'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1, 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => [ 'config' => [
'type' => 'select', 'type' => 'group',
'items' => [ 'internal_type' => 'db',
['', 0], 'allowed' => 'tx_t3omembership_domain_model_membership',
], 'size' => 1,
'foreign_table' => 'tx_t3omembership_domain_model_membership', 'maxitems' => 1,
'foreign_table_where' => 'AND tx_t3omembership_domain_model_membership.pid=###CURRENT_PID### AND tx_t3omembership_domain_model_membership.sys_language_uid IN (-1,0)', 'minitems' => 0,
'default' => 0,
], ],
], ],
'l10n_diffsource' => [ 'l10n_diffsource' => [
...@@ -73,43 +77,47 @@ return [ ...@@ -73,43 +77,47 @@ return [
], ],
], ],
'hidden' => [ 'hidden' => [
'exclude' => 1, 'exclude' => true,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
'config' => [ 'config' => [
'type' => 'check', 'type' => 'check',
], 'renderType' => 'checkboxToggle',
'default' => 0,
'items' => [
[
0 => '',
1 => '',
]
],
]
], ],
'starttime' => [ 'starttime' => [
'exclude' => 1, 'exclude' => true,
'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:starttime_formlabel',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
'config' => [ 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 13, 'renderType' => 'inputDateTime',
'max' => 20, 'size' => 16,
'eval' => 'datetime', 'eval' => 'datetime,int',
'checkbox' => 0,
'default' => 0, 'default' => 0,
'range' => [ 'behaviour' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) 'allowLanguageSynchronization' => true,
], ],
], ]
], ],
'endtime' => [ 'endtime' => [
'exclude' => 1, 'exclude' => true,
'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:endtime_formlabel',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
'config' => [ 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 13, 'renderType' => 'inputDateTime',
'max' => 20, 'size' => 16,
'eval' => 'datetime', 'eval' => 'datetime,int',
'checkbox' => 0,
'default' => 0, 'default' => 0,
'range' => [ 'behaviour' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) 'allowLanguageSynchronization' => true,
], ],
], ]
], ],
'name' => [ 'name' => [
'exclude' => 0, 'exclude' => 0,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment