Feature: Site set and page rendering
Description
The theme now renders pages, and ships a site set to enable it.
A site enables the theme by depending on the set in its site configuration:
dependencies:
- sbuerk/theme-extension-development
No sys_template record is needed. The set brings the TypoScript, a Fluid based page rendering and the compiled stylesheet with it.
For installations that do not use site sets, the theme additionally registers a classic static template, selectable in the Include static (from extensions) field of a sys_template record. The two mechanisms are safe side by side: the static include detects an active set and skips its own import, so a site configured with both is not served the theme twice.
What is rendered
- A page object with a Fluid template, layout and partials below
Resources/.Private/ - The compiled stylesheet from
Resources/.Public/ Css/ theme. css - The content of the normal column.
The Fluid paths and the stylesheet are TypoScript constants under theme., so
an integrator can point them at their own files without editing the extension —
see Configuration.
Note
Content element rendering is described in Feature: Content element rendering.
Every page currently renders the same template. Backend layout support follows later.