Chapter 11. Templates

Table of Contents

1. The Template System
1.1. Definition of ConPresso Placeholders
1.2. Types of Placeholders
1.3. Placeholder Name
1.4. Placeholder Options
1.5. Image Placeholder (Placeholder of the Type "Image")
1.6. File Placeholder (Placeholder of the Type "File")
1.7. Simple Text Placeholder (Placeholder of the Type "Text")
1.8. HTML Placeholder (Placeholder of the Type "HTML")
1.9. Link Placeholder (Placeholder of the Type "URL")
1.10. Value Placeholders
1.11. Conditional Placeholders (ifSet/ifNotSet)
2. Create Article Template
3. Edit Article-Templates (List View)
3.1. Edit Article-Template
3.2. Edit Placeholder
3.3. Copy Article-Template
3.4. Delete Article-Template

Users with the roles of "Administrator" or "Superuser" can create and edit article-templates and they can allocate them to certain rubrics.

ConPresso-templates are article-templates but not page-templates, which means that they solely govern the look of articles. Their functionality has an impact on both, the frontend and the ConPresso backend: in the frontend of a ConPresso project they govern the look of an article and in the ConPresso backend they determine which content elements (e.g. texts and or images ect.) are there for a content editing user to create and edit.

If more than one article-template has been allocated to a rubric, content editing users can influence the look of an article by choosing the article-template they like.

The next sections will introduce you to the ConPresso template system and its placeholders followed by explanations of how to create and edit article-templates.