Content areas
Content areas are required in order to enter sections in a page in the Page Store.
A page can have one or more content areas.
These content areas are defined in page templates.
Definition via the template properties
Content areas are defined via the "Properties" tab of a page template. Click the "Add Content Area" icon to add a new content area to a page template, to edit, resort or delete an existing content area.
The content of a content area is output with the help of the $CMS_VALUE(...)$ instruction and the system object #global:
$CMS_VALUE(#global.page.body("IDENTIFIER"))$
The identifier given in .body() must match the value of the unique reference name of the content area, as it was defined on the "Properties" tab! |
For further information on defining content areas using the template properties, see FirstSpirit Release Notes 4.2 and FirstSpirit Manual for Developers (Basics). |
Definition via CMS_BODY
Up to and including FirstSpirit Version 4.1, content areas are defined by placing a CMS_BODY tag (in the header area of a template) between the opening and closing CMS_HEADER tag:
<CMS_HEADER>
<CMS_BODY name="IDENTIFIER" />
</CMS_HEADER>
The identifier can be freely selected but may only consist of the following characters:
A-Z a-z 0-9 _
Following the definition, sections can be created in this content area in the Page Store. The display name of the content area corresponds to the value of the name attribute.
The contents of a content area are output with the help of the $CMS_VALUE(...)$ instruction and the system object #global.
$CMS_VALUE(#global.page.body("IDENTIFIER"))$
The identifier given in .body() must match the value of the name attribute in the CMS_BODY tag! |