Sections Overview

Last edited: 11/26/2012

Sections are used to accomplish a number of tasks on a site. They add sidebars to other modules or can add content inline to any text area.

As sections are only displayed one at a time, there is no display:list.

Display Detail

If you include the following getContent on any template, the section will appear when editing the template in the template manager. From there you can assign a default section. Then when editing any content using that template, you will be able to choose a section to go with it. If multiple sections are to be included in a template, the 'label' parameter should be used to differentiate between them.

Example:

 getContent(
 "section",
 "display:detail",
 "find:".$_GET['nav'],
 "label:sidebar",
 "show:<h4>__title__</h4>",
 "show:<div>__text__</div>"
 );

A section can be called by itself as well.

Example:

 getContent(
 "section",
 "display:detail",
 "find:some-section",
 "show:<div>__text__</div>"
 );

Inline

Sections can also be called from any other content area by making use of the section slug. Simply put the section slug between two curley braces, only one brace is used in the following exampe so the system doesn't try to parse it as a section ( {some-section} ).

Sections for Articles and Sermons

Sections cannot be assigned dynamically by the CMS for the Article and Sermon Lists if they are created by using the "All Sermons/ All Articles" navigation item. However, Sections can of course be assigned if these pages were created as a Page in the Pages module.