Configuration options

When registering a container you have the following options:

Required

CType

CType
type

string

Path

$config['your-ctype']

The CType used to identify your container

label

label
type

string

Path

$config['your-ctype']['label']

The label of your container

description

description
type

string

Path

$config['your-ctype']['description']

The description of your container, will be displayed for example in the content element wizard

columnConfiguration

columnConfiguration
type

array

Default

EXT:container/Resources/Public/Icons/Extension.svg

Path

$config['your-ctype']['columnConfiguration']

The configuration for your containers columns

See: https://github.com/b13/container?tab=readme-ov-file#adding-your-own-container-element

Optional

Also see https://github.com/b13/container?tab=readme-ov-file#methods-of-the-containerconfiguration-object

icon

icon
type

string

Default

EXT:container/Resources/Public/Icons/Extension.svg

Path

$config['your-ctype']['icon']

An icon file, or existing icon identifier representing your container

backendTemplate

backendTemplate
type

string

Default

EXT:container/Resources/Private/Templates/Container.html

Path

$config['your-ctype']['backendTemplate']

The Fluid template used for the backend view

gridTemplate

gridTemplate
type

string

Default

EXT:container/Resources/Private/Templates/Grid.html

Path

$config['your-ctype']['gridTemplate']

Template for grid

registerInNewContentElementWizard

registerInNewContentElementWizard
type

boolean

Default

true

Path

$config['your-ctype']['registerInNewContentElementWizard']

Template for grid

saveAndCloseInNewContentElementWizard

saveAndCloseInNewContentElementWizard
type

boolean

Default

true

Path

$config['your-ctype']['saveAndCloseInNewContentElementWizard']

Template for grid

group

group
type

string

Default

container

Path

$config['your-ctype']['group']

CType select item group

The default value can be changed to $_EXTKEY.'_container' (myext_container) if you call the register function with the optional parameter

Enable tt-content fields

header

header
type

boolean

Default

false

Path

$config['your-ctype']['header']

  • if true, will add the full headers palette (header, subheader, header_link,etc.)
  • if false, will only add the header field

bodytext

bodytext
type

boolean

Default

false

Path

$config['your-ctype']['bodytext']

if true, will add the bodytext field with richtext enabled

media

media
type

boolean

Default

false

Path

$config['your-ctype']['media']

If true will add the media --div-- with the assets field

settings

settings
type

boolean

Default

false

Path

$config['your-ctype']['settings']

If true, will add an empty palette containerSettings in a new --div-- "Container" If you configure custom fields for containers you could add them here, e.g. with ExtensionManagementUtility::addFieldsToPalette('tt_content', 'containerSettings', 'tx_yourfield')

flexform

flexform
type

string|boolean

Default

false

Path

$config['your-ctype']['flexform']

If _not_ false, the palette containerFlexform will be added to the Container --div--, which contains the pi_flexform field

If it contains a FILE string to a flexform xml, this will be added with ExtensionManagementUtility::addPiFlexFormValue() for this CType

Example: 'flexform' => 'FILE:EXT:my_ext/Configuration/Flexforms/MyContainerSettings.xml',

additionalFields

additionalFields
type

boolean

Default

false

Path

$config['your-ctype']['additionalFields']

If true, will add an empty palette containerAdditionalFields to the Extended tab If you configure custom fields for containers you could add them here, e.g. with ExtensionManagementUtility::addFieldsToPalette('tt_content', 'containerAdditionalFields', 'tx_yourfield')

columnsOverrides

columnsOverrides
type

array

Default

false

Path

$config['your-ctype']['columnsOverrides']

Changed or added ['columns'] field display definitions. See columnsOverrides