extension_builder icon indicating copy to clipboard operation
extension_builder copied to clipboard

Output of items

Open SSFGizmo opened this issue 1 year ago • 0 comments
trafficstars

The output of the items has been changed.

  • https://github.com/FriendsOfTYPO3/extension_builder/blob/typo3-12-reactjs/Resources/Private/CodeTemplates/Extbase/Partials/TCA/SelectProperty.phpt
'items' => [
        ['Default', 0],<f:for each="{property.selectboxValues}" as="value" key="label">
        ['{label}', '{value}'],</f:for>
],
  • https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.3/Deprecation-99739-IndexedArrayKeysForTCAItems.html
  • https://docs.typo3.org/m/typo3/reference-tca/12.4/en-us/ColumnsConfig/Type/Select/Properties/Items.html
'items' => [
        [
             'label' => 'Default', 
              'value' => 0],<f:for each="{property.selectboxValues}" as="value" key="label">
        [
             'label' => '{label}', 
             'value' => '{value}'
        ],</f:for>
],

SSFGizmo avatar Jul 03 '24 16:07 SSFGizmo