TemplatesPages module

Pages templates

Default templates the Pages module renders, the controller that renders each one and what it receives. A file at the same path in your site repository replaces the platform's.

View Default templates of the public site.

Templates view

pages/pages/index.html Pages\Index

Retrieve a list of records and assign them to the template.

The template receives
VariableTypeDescription
$pages Collection<Page> Collection of Pages

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Override it: create templates/pages/pages/index.html in your site repository.

pages/pages/show.html Pages\Show

Show a single record

The template receives
VariableTypeDescription
$page Page Single Page record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Override it: create templates/pages/pages/show.html in your site repository.