This shows you the differences between two versions of the page.
section [2015/09/08 14:46] ben [Section] |
section [2017/07/26 08:23] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Section ====== | ||
- | |||
- | Within a [[templates|template's]] [[format|format]] there need to be areas where users can insert their layout [[block|blocks]]. These areas, effectively holes in your design where you plug in content, are called sections. | ||
- | |||
- | A typical layout might have a section for the header, body, and footer. The content that you plug into sections takes the form of blocks that are stored in your [[block-library|Block Library]]. | ||
- | |||
- | To mark the start and end of a section use the follow HTML comment codes: | ||
- | |||
- | <code html> | ||
- | <!--This is the body container for my template--> | ||
- | <table width="600"> | ||
- | <tr> | ||
- | <td> | ||
- | <!--SectionStart Width="600"--> | ||
- | |||
- | Users will add their blocks here... | ||
- | |||
- | <!--SectionFinish--> | ||
- | </td> | ||
- | </tr> | ||
- | </table> | ||
- | </code> | ||
- | |||
- | ===== Section properties ===== | ||
- | |||
- | ^ Property ^ Required ^ Description ^ | ||
- | | MaxWidth | No | By default, any blocks which have a Width property greater than a section's MaxWidth will not be shown when a user tries to add blocks to the section. This helps prevent users breaking template layout by adding blocks that are too wide. | | ||