3.3 Component Template Concept: Content Editor
Component Templates are created by developers
Conceptual Overview
Component Templates are just like Components except other Components can be inserted into them
Component Templates function similarly to Components, serving as foundational elements in the creation of Pages. The primary distinction lies in their ability to include placeholders, referred to as Template Slots. These slots enable content editors to embed additional Components during the Page construction process.
This differs from laying out Components one after the other, as the slotted Components are inserted within the Component Template’s own content, rather than alongside it.
Conceptual Diagram
For example, in the diagram below, a Book Now
Component Template is used with an Address
and Telephone
Component inserted as methods of contact. However, these could be replaced with other methods of contact, such as Email
and Social Media
instead.
Benefits
Composability
Reusability of existing content
Notes
Multiple Components can be added to each slot.
Component Template Slots do not have to be filled.
Component Templates do not have to contain slots.
Component Templates cannot be inserted into Component Template Slots.
Glossary
See the Glossary for more information.