On Your Site
Local Development
Site Code
Guides
Site Configuration
Content Management
Forms
Form API
Templates
Content Management
Content Blocks
Content blocks allow you specify sections of content to be edited in the WYSIWYG editor.
Example
{% content hero_text %}
<h2>A Header</h2><p>Some <strong>content</strong>;</p>
{% endcontent %}
The content inside the content tag is used if there is no content defined in the WYSIWYG editor. If you reuse the name "hero_text" in the same template the edited content will be replicated.
Precedence
Content blocks are loaded in the following order:
- Specific content for campaign, language and country
- Default content for campaign and language
- Default content for campaign
- Default content specified in template