[FEATURE] TCA: Allow label in palette array 49/54449/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 19 Oct 2017 22:34:20 +0000 (00:34 +0200)
committerBenni Mack <benni@typo3.org>
Fri, 20 Oct 2017 12:50:42 +0000 (14:50 +0200)
commit6a56da73c142d2d5605afdb19b73f1b22b9a5587
treefe40149a7239f986f6c58dae8dc2ec4950c1ef65
parent9ddb3cb19a7ea4b5c3ab2b411c0f936fcf777842
[FEATURE] TCA: Allow label in palette array

Allow 'label' within the 'palettes' array in TCA next
to 'showitem'. This defines a default label rendered as
the palette label in FormEngine if not overridden in
a 'types' definition like '--palette--;labelReference;thePalette'.

The patch introduces this feature in PaletteAndSingleContainer
of FormEngine code and adapts core TCA definitions to introduce
the default labels for palettes.

This makes the 'types' definitions shorter and much better readable
and gives the core an opportunity to steer the labels for palettes
which are often re-used by extension authors.

Change-Id: I185340d4e037d713eebbb6cd676287e6fe85705b
Resolves: #82826
Releases: master
Reviewed-on: https://review.typo3.org/54449
Reviewed-by: Benjamin Kott <benjamin.kott@outlook.com>
Tested-by: Benjamin Kott <benjamin.kott@outlook.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
13 files changed:
typo3/sysext/backend/Classes/Form/Container/PaletteAndSingleContainer.php
typo3/sysext/backend/Tests/Unit/Form/Container/PaletteAndSingleContainerTest.php [new file with mode: 0644]
typo3/sysext/core/Configuration/TCA/pages.php
typo3/sysext/core/Configuration/TCA/sys_file_reference.php
typo3/sysext/core/Documentation/Changelog/master/Feature-82826-TCAAllowLabelInPalettesArray.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php
typo3/sysext/felogin/Configuration/TCA/Overrides/tt_content.php
typo3/sysext/filemetadata/Configuration/TCA/Overrides/sys_file_metadata.php
typo3/sysext/fluid_styled_content/Documentation/AddingYourOwnContentElements/Index.rst
typo3/sysext/form/Configuration/TCA/Overrides/tt_content.php
typo3/sysext/frontend/Configuration/TCA/pages_language_overlay.php
typo3/sysext/frontend/Configuration/TCA/tt_content.php
typo3/sysext/workspaces/Configuration/TCA/sys_workspace.php