Skip to content

Commit

Permalink
Merge pull request #768 from tillhoerner/master
Browse files Browse the repository at this point in the history
TCA Migrations for v12
  • Loading branch information
lochmueller authored Oct 17, 2023
2 parents 5b0b34f + d812650 commit 42dc404
Show file tree
Hide file tree
Showing 9 changed files with 191 additions and 219 deletions.
4 changes: 2 additions & 2 deletions Classes/Service/PluginConfigurationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public function addConfig(array $config): array
{
foreach (Register::getRegister() as $key => $configuration) {
$config['items'][] = [
$configuration['title'],
$key,
'label' => $configuration['title'],
'value' => $key,
];
}

Expand Down
60 changes: 28 additions & 32 deletions Configuration/FlexForms/Calendar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<size>1</size>
<items>
<numIndex index="0">
<numIndex index="0"/>
<numIndex index="1"/>
<label/>
<value/>
</numIndex>
</items>
</config>
Expand Down Expand Up @@ -115,9 +115,7 @@
</AND>
</displayCond>
<config>
<type>input</type>
<eval>datetime</eval>
<renderType>inputDateTime</renderType>
<type>datetime</type>
</config>
</TCEforms>
</settings.overrideStartdate>
Expand All @@ -135,9 +133,7 @@
</AND>
</displayCond>
<config>
<type>input</type>
<eval>datetime</eval>
<renderType>inputDateTime</renderType>
<type>datetime</type>
</config>
</TCEforms>
</settings.overrideEnddate>
Expand Down Expand Up @@ -214,16 +210,16 @@
<renderType>selectSingle</renderType>
<items>
<numIndex index="0">
<numIndex index="0">LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:tx_calendarize_domain_model_configuration.start_date</numIndex>
<numIndex index="1">start</numIndex>
<label>LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:tx_calendarize_domain_model_configuration.start_date</label>
<value>start</value>
</numIndex>
<numIndex index="1">
<numIndex index="0">LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:tx_calendarize_domain_model_configuration.end_date</numIndex>
<numIndex index="1">end</numIndex>
<label>LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:tx_calendarize_domain_model_configuration.end_date</label>
<value>end</value>
</numIndex>
<numIndex index="2">
<numIndex index="0">LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:tx_calendarize_domain_model_configuration.with_range_last</numIndex>
<numIndex index="1">withrangelast</numIndex>
<label>LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:tx_calendarize_domain_model_configuration.with_range_last</label>
<value>withrangelast</value>
</numIndex>
</items>
</config>
Expand All @@ -239,12 +235,12 @@
<renderType>selectSingle</renderType>
<items>
<numIndex index="0">
<numIndex index="0">ASC</numIndex>
<numIndex index="1">ASC</numIndex>
<label>ASC</label>
<value>ASC</value>
</numIndex>
<numIndex index="1">
<numIndex index="0">DESC</numIndex>
<numIndex index="1">DESC</numIndex>
<label>DESC</label>
<value>DESC</value>
</numIndex>
</items>
</config>
Expand Down Expand Up @@ -275,32 +271,32 @@
<renderType>selectSingle</renderType>
<items type="array">
<numIndex index="1" type="array">
<numIndex index="0">LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:inherit</numIndex>
<numIndex index="1"/>
<label>LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:inherit</label>
<value/>
</numIndex>
<numIndex index="2" type="array">
<numIndex index="0">LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:recursive.I.0</numIndex>
<numIndex index="1">0</numIndex>
<label>LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:recursive.I.0</label>
<value>0</value>
</numIndex>
<numIndex index="3" type="array">
<numIndex index="0">LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:recursive.I.1</numIndex>
<numIndex index="1">1</numIndex>
<label>LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:recursive.I.1</label>
<value>1</value>
</numIndex>
<numIndex index="4" type="array">
<numIndex index="0">LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:recursive.I.2</numIndex>
<numIndex index="1">2</numIndex>
<label>LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:recursive.I.2</label>
<value>2</value>
</numIndex>
<numIndex index="5" type="array">
<numIndex index="0">LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:recursive.I.3</numIndex>
<numIndex index="1">3</numIndex>
<label>LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:recursive.I.3</label>
<value>3</value>
</numIndex>
<numIndex index="6" type="array">
<numIndex index="0">LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:recursive.I.4</numIndex>
<numIndex index="1">4</numIndex>
<label>LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:recursive.I.4</label>
<value>4</value>
</numIndex>
<numIndex index="7" type="array">
<numIndex index="0">LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:recursive.I.5</numIndex>
<numIndex index="1">250</numIndex>
<label>LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:recursive.I.5</label>
<value>250</value>
</numIndex>
</items>
</config>
Expand Down
12 changes: 6 additions & 6 deletions Configuration/FlexForms/TimeTable/Manipulation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
<TCEforms>
<label>Fix start time</label>
<config>
<type>input</type>
<renderType>inputDateTime</renderType>
<eval>time,null</eval>
<type>datetime</type>
<format>time</format>
<nullable>1</nullable>
</config>
</TCEforms>
</settings.fixedStartTime>
<settings.fixedEndTime>
<TCEforms>
<label>Fix end time</label>
<config>
<type>input</type>
<renderType>inputDateTime</renderType>
<eval>time,null</eval>
<type>datetime</type>
<format>time</format>
<nullable>1</nullable>
</config>
</TCEforms>
</settings.fixedEndTime>
Expand Down
6 changes: 3 additions & 3 deletions Configuration/TCA/Overrides/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
$icon = 'apps-pagetree-folder-contains-calendarize';

$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = [
0 => 'Calendarize',
1 => 'calendarize',
2 => $icon,
'label' => 'Calendarize',
'value' => 'calendarize',
'icon' => $icon,
];
$GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-calendarize'] = $icon;
})();
Loading

0 comments on commit 42dc404

Please sign in to comment.