To each container of a layout modules can be assigned to be rendered. This assignment is saved in the Template.
To add a new container to your layout, you must add its syntax right at the place, you later want to output dynamic content.
The syntax of a container is HTML like the following.
<container id="ID" name="NAME">Default</container>
Each container needs an ID, which is unique in the complete layout. This ID is important, so modules can be assigned clearly. The name of the container should be short and descriptive. It is displayed in the template management to help you, where your module is assigned.
The "content" of the container element later gets replaced by the module you have assigned to it. The content of this element is only displayed on the template preview page.
The container element can be configured with more, optional attributes.
Attribute name | Description |
---|---|
mode | The "mode" parameter with the value "fixed" can fix a module to its container, so no other modules can assigned to this container. |
types | The attribute "types" can contain a comma separated list of module types, which only can be assigned to this container. |
default | The attribute "default" can contain the name of the module, which is assigned per default to this container. |