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 cdna-admin screens you can override in your site repository.

Admin view

pages/backend/pages/add.html Pages\Add

Add a new record. Assigns an empty record to the template.

The admin template receives
VariableTypeDescription
$page Page Single (empty) Page record

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

Customise this admin screen: create templates/pages/backend/pages/add.html in your site repository.

pages/backend/pages/edit.html Pages\Edit

Retrieve a single record and display the edit page for the record

The admin template receives
VariableTypeDescription
$page Page Retrieved Page record

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

Customise this admin screen: create templates/pages/backend/pages/edit.html in your site repository.

pages/backend/pages/manage.html Pages\Manage

Retrieve available records and assign them to the template for editing.

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

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

Customise this admin screen: create templates/pages/backend/pages/manage.html in your site repository.