templates
The templates folder contains private resources. If you are familiar with the directory structure of extensions, this would be the Resources/Private folder. There is a limited set of directories and files, which you can place here.
backend-preview.html
The backend-preview.html can be added to customize the backend preview for your editors.
Learn more about backend previews.
frontend.html
This is the default frontend rendering definition for Content Elements.
You can access your fields by the variable {data}
.
Learn more about templating.
partials
For larger Content Elements, you can divide your frontend.html template into smaller chunks by creating separate partials here.
Partials are included as you normally would in any Fluid template.
Note
Due to current Fluid restrictions, partials have to start with an uppercase letter. This restriction might be lifted in later Fluid versions (v5 or above).
<f:render partial="Component" arguments="{_all}"/>
See also:
- Learn how to share partials between Content Blocks.
layouts
You can also add layouts to your Content Block if needed.
<f:layout name="MyLayout">