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.

<f:render partial="Component" arguments="{_all}"/>
Copied!

See also:

layouts

You can also add layouts to your Content Block if needed.

<f:layout name="MyLayout">
Copied!