Configuration options
When registering a container you have the following options:
Required
CType
-
- type
-
string
- Path
-
$config
['your- ctype']
The CType used to identify your container
label
-
- type
-
string
- Path
-
$config
['your- ctype'] ['label']
The label of your container
description
-
- type
-
string
- Path
-
$config
['your- ctype'] ['description']
The description of your container, will be displayed for example in the content element wizard
columnConfiguration
-
- type
-
array
- Default
-
EXT:container/Resources/Public/Icons/Extension.svg
- Path
-
$config
['your- ctype'] ['column Configuration']
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
-
- 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
-
- type
-
string
- Default
-
EXT:container/Resources/Private/Templates/Container.html
- Path
-
$config
['your- ctype'] ['backend Template']
The Fluid template used for the backend view
gridTemplate
-
- type
-
string
- Default
-
EXT:container/Resources/Private/Templates/Grid.html
- Path
-
$config
['your- ctype'] ['grid Template']
Template for grid
registerInNewContentElementWizard
-
- type
-
boolean
- Default
-
true
- Path
-
$config
['your- ctype'] ['register In New Content Element Wizard']
Template for grid
saveAndCloseInNewContentElementWizard
-
- type
-
boolean
- Default
-
true
- Path
-
$config
['your- ctype'] ['save And Close In New Content Element Wizard']
Template for grid
group
-
- type
-
string
- Default
-
container
- Path
-
$config
['your- ctype'] ['group']
CType select item group
The default value can be changed to
$_
(myext_container) if you call the register function with the optional parameterEXTKEY.'_ container'
Enable tt-content fields
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
-
- type
-
boolean
- Default
-
false
- Path
-
$config
['your- ctype'] ['bodytext']
if true, will add the bodytext field with richtext enabled
media
-
- type
-
boolean
- Default
-
false
- Path
-
$config
['your- ctype'] ['media']
If true will add the media
--
with thediv-- assets
field
settings
-
- type
-
boolean
- Default
-
false
- Path
-
$config
['your- ctype'] ['settings']
If true, will add an empty palette
container
in a newSettings --
"Container" If you configure custom fields for containers you could add them here, e.g. withdiv-- Extension
Management Utility:: add Fields To Palette ('tt_ content', 'container Settings', 'tx_ yourfield')
flexform
-
- type
-
string|boolean
- Default
-
false
- Path
-
$config
['your- ctype'] ['flexform']
If _not_ false, the palette
container
will be added to the ContainerFlexform --
, which contains thediv-- pi_
fieldflexform If it contains a FILE string to a flexform xml, this will be added with
Extension
for this CTypeManagement Utility:: add Pi Flex Form Value () Example:
'flexform' => 'FILE:
EXT: my_ ext/ Configuration/ Flexforms/ My Container Settings. xml',
additionalFields
-
- type
-
boolean
- Default
-
false
- Path
-
$config
['your- ctype'] ['additional Fields']
If true, will add an empty palette
container
to the Extended tab If you configure custom fields for containers you could add them here, e.g. withAdditional Fields Extension
Management Utility:: add Fields To Palette ('tt_ content', 'container Additional Fields', 'tx_ yourfield')
columnsOverrides
-
- type
-
array
- Default
-
false
- Path
-
$config
['your- ctype'] ['columns Overrides']
Changed or added ['columns'] field display definitions. See columnsOverrides