mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-14 05:16:12 +01:00
[TASK] Migrate the TCA to TYPO3 CMS 7.6
This commit is contained in:
parent
bc58abde55
commit
c64d8b9fd9
4 changed files with 14 additions and 27 deletions
|
@ -7,7 +7,7 @@ $GLOBALS['TCA']['tx_tea_domain_model_addition'] = [
|
||||||
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title',
|
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title',
|
||||||
],
|
],
|
||||||
'types' => [
|
'types' => [
|
||||||
'1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'],
|
'1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'],
|
||||||
],
|
],
|
||||||
'palettes' => [
|
'palettes' => [
|
||||||
'1' => ['showitem' => ''],
|
'1' => ['showitem' => ''],
|
||||||
|
@ -18,6 +18,7 @@ $GLOBALS['TCA']['tx_tea_domain_model_addition'] = [
|
||||||
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
|
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
|
||||||
'config' => [
|
'config' => [
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
|
'renderType' => 'selectSingle',
|
||||||
'foreign_table' => 'sys_language',
|
'foreign_table' => 'sys_language',
|
||||||
'foreign_table_where' => 'ORDER BY sys_language.title',
|
'foreign_table_where' => 'ORDER BY sys_language.title',
|
||||||
'items' => [
|
'items' => [
|
||||||
|
@ -32,6 +33,7 @@ $GLOBALS['TCA']['tx_tea_domain_model_addition'] = [
|
||||||
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
|
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
|
||||||
'config' => [
|
'config' => [
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
|
'renderType' => 'selectSingle',
|
||||||
'items' => [
|
'items' => [
|
||||||
['', 0],
|
['', 0],
|
||||||
],
|
],
|
||||||
|
|
|
@ -7,7 +7,7 @@ $GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = [
|
||||||
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, size, type, additions, testimonials',
|
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, size, type, additions, testimonials',
|
||||||
],
|
],
|
||||||
'types' => [
|
'types' => [
|
||||||
'1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, size, type, additions, testimonials,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'],
|
'1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, size, type, additions, testimonials, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'],
|
||||||
],
|
],
|
||||||
'palettes' => [
|
'palettes' => [
|
||||||
'1' => ['showitem' => ''],
|
'1' => ['showitem' => ''],
|
||||||
|
@ -18,6 +18,7 @@ $GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = [
|
||||||
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
|
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
|
||||||
'config' => [
|
'config' => [
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
|
'renderType' => 'selectSingle',
|
||||||
'foreign_table' => 'sys_language',
|
'foreign_table' => 'sys_language',
|
||||||
'foreign_table_where' => 'ORDER BY sys_language.title',
|
'foreign_table_where' => 'ORDER BY sys_language.title',
|
||||||
'items' => [
|
'items' => [
|
||||||
|
@ -32,6 +33,7 @@ $GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = [
|
||||||
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
|
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
|
||||||
'config' => [
|
'config' => [
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
|
'renderType' => 'selectSingle',
|
||||||
'items' => [
|
'items' => [
|
||||||
['', 0],
|
['', 0],
|
||||||
],
|
],
|
||||||
|
@ -105,6 +107,7 @@ $GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = [
|
||||||
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.type',
|
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.type',
|
||||||
'config' => [
|
'config' => [
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
|
'renderType' => 'selectSingle',
|
||||||
'foreign_table' => 'tx_tea_domain_model_teatype',
|
'foreign_table' => 'tx_tea_domain_model_teatype',
|
||||||
'minitems' => 0,
|
'minitems' => 0,
|
||||||
'maxitems' => 1,
|
'maxitems' => 1,
|
||||||
|
@ -115,35 +118,13 @@ $GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = [
|
||||||
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.additions',
|
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.additions',
|
||||||
'config' => [
|
'config' => [
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
|
'renderType' => 'selectSingleBox',
|
||||||
'foreign_table' => 'tx_tea_domain_model_addition',
|
'foreign_table' => 'tx_tea_domain_model_addition',
|
||||||
'MM' => 'tx_tea_teabeverage_addition_mm',
|
'MM' => 'tx_tea_teabeverage_addition_mm',
|
||||||
'size' => 10,
|
'size' => 10,
|
||||||
'autoSizeMax' => 30,
|
'autoSizeMax' => 30,
|
||||||
'maxitems' => 9999,
|
'maxitems' => 9999,
|
||||||
'multiple' => 0,
|
'multiple' => 0,
|
||||||
'wizards' => [
|
|
||||||
'_PADDING' => 1,
|
|
||||||
'_VERTICAL' => 1,
|
|
||||||
'edit' => [
|
|
||||||
'type' => 'popup',
|
|
||||||
'title' => 'Edit',
|
|
||||||
'script' => 'wizard_edit.php',
|
|
||||||
'icon' => 'edit2.gif',
|
|
||||||
'popup_onlyOpenIfSelected' => 1,
|
|
||||||
'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
|
|
||||||
],
|
|
||||||
'add' => [
|
|
||||||
'type' => 'script',
|
|
||||||
'title' => 'Create new',
|
|
||||||
'icon' => 'add.gif',
|
|
||||||
'params' => [
|
|
||||||
'table' => 'tx_tea_domain_model_addition',
|
|
||||||
'pid' => '###CURRENT_PID###',
|
|
||||||
'setValue' => 'prepend'
|
|
||||||
],
|
|
||||||
'script' => 'wizard_add.php',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'testimonials' => [
|
'testimonials' => [
|
||||||
|
|
|
@ -7,7 +7,7 @@ $GLOBALS['TCA']['tx_tea_domain_model_teatype'] = [
|
||||||
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, caffeinated',
|
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, caffeinated',
|
||||||
],
|
],
|
||||||
'types' => [
|
'types' => [
|
||||||
'1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title, caffeinated,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'],
|
'1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden title, caffeinated, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'],
|
||||||
],
|
],
|
||||||
'palettes' => [
|
'palettes' => [
|
||||||
'1' => ['showitem' => ''],
|
'1' => ['showitem' => ''],
|
||||||
|
@ -18,6 +18,7 @@ $GLOBALS['TCA']['tx_tea_domain_model_teatype'] = [
|
||||||
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
|
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
|
||||||
'config' => [
|
'config' => [
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
|
'renderType' => 'selectSingle',
|
||||||
'foreign_table' => 'sys_language',
|
'foreign_table' => 'sys_language',
|
||||||
'foreign_table_where' => 'ORDER BY sys_language.title',
|
'foreign_table_where' => 'ORDER BY sys_language.title',
|
||||||
'items' => [
|
'items' => [
|
||||||
|
@ -32,6 +33,7 @@ $GLOBALS['TCA']['tx_tea_domain_model_teatype'] = [
|
||||||
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
|
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
|
||||||
'config' => [
|
'config' => [
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
|
'renderType' => 'selectSingle',
|
||||||
'items' => [
|
'items' => [
|
||||||
['', 0],
|
['', 0],
|
||||||
],
|
],
|
||||||
|
|
|
@ -7,7 +7,7 @@ $GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = [
|
||||||
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, date_of_posting, number_of_consumed_cups, text',
|
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, date_of_posting, number_of_consumed_cups, text',
|
||||||
],
|
],
|
||||||
'types' => [
|
'types' => [
|
||||||
'1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, date_of_posting, number_of_consumed_cups, text,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'],
|
'1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, date_of_posting, number_of_consumed_cups, text, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'],
|
||||||
],
|
],
|
||||||
'palettes' => [
|
'palettes' => [
|
||||||
'1' => ['showitem' => ''],
|
'1' => ['showitem' => ''],
|
||||||
|
@ -18,6 +18,7 @@ $GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = [
|
||||||
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
|
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
|
||||||
'config' => [
|
'config' => [
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
|
'renderType' => 'selectSingle',
|
||||||
'foreign_table' => 'sys_language',
|
'foreign_table' => 'sys_language',
|
||||||
'foreign_table_where' => 'ORDER BY sys_language.title',
|
'foreign_table_where' => 'ORDER BY sys_language.title',
|
||||||
'items' => [
|
'items' => [
|
||||||
|
@ -32,6 +33,7 @@ $GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = [
|
||||||
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
|
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
|
||||||
'config' => [
|
'config' => [
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
|
'renderType' => 'selectSingle',
|
||||||
'items' => [
|
'items' => [
|
||||||
['', 0],
|
['', 0],
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue