Background Colors

Field

  • tx_site_background_color

Manipulation

Adding new color

Register TCA select item in site/Classes/Utility/BackendColorsUtility

Add new item config ro return array

[
    'LLL:EXT:site/Resources/Private/Language/locallang_be.xlf:tt_content.tx_site_background_color.<color-identifier>',
    '<color-identifier>',
    'tca-tt-content-backgroundcolor-<color-identifier>',
],

Add color to $colorMappings

'<color-identifier>' => '#<hex-code>'

Ready to use