Personal tools
FAQ/Multiple Content Blocks
From CMSMS
This page in: English - Deutsch - Français - Svenska - Русский - Norsk - Polski - Nederlands - Español - Lietuvių
How to add multiple content blocks
If you want to output a page (what else :)) you have to add {content} tag in your template.
But what's to do if you need more than one content block?
For that {content} tag has a useful parameter named block. Tag help says to this parameter:
# (optional) block - Allows you to have more than one content block per page. When multiple content tags are put on a template, that number of edit boxes will be displayed when the page is edited.
Let's make an example. If you want a second text block (for instance named Textblock-2) you have to add the following:
{content block="Textblock-2"}
in your template on place where you want to locate second content block. When you now edit a page (which is attached with this template) there will be a second textarea called "Textblock-2".
So it's very easy to add multiple content blocks. At the same way you can add a third, fourt, fifth, ... content block (like you want).
Note: The target of most module output will be the first content block (created with {content}).
This page in: English - Deutsch - Français - Svenska - Русский - Norsk - Polski - Nederlands - Español - Lietuvių
