Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

A container is a markup element in a layout. It serves as a placeholder for a module that can be inserted using a template.

In order to add a new container to your layout, you have to add its markup right at the place, you later want to output dynamic content.

The syntax of a container is XML as follows:

<container id="ID" name="NAME">Default</container>

Container element

The container element can be configured with more, optional attributes.

Attribute name Description
id
requiredEach container needs an ID, which is unique in the whole layout. This ID is important, so modules can be assigned clearly.
name
requiredThe name of the container should be short and descriptive. It is displayed in the template overview to help you, where your module is assigned.
modeoptionalThe "mode" parameter with the value "fixed" can fix a module to its container, so no other modules can assigned to this container.
typesoptionalThe attribute "types" can contain a comma separated list of module types, which only can be assigned to this container.
defaultoptionalThe attribute "default" can contain the name of the module, which is assigned per default to this container.

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.

  • No labels