TemplatesRewrites module

Rewrites templates

Default templates the Rewrites 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

rewrites/backend/rewrites/add.html Rewrites\Add

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

The admin template receives
VariableTypeDescription
$rewrite Rewrite Single (empty) Rewrite record

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

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

rewrites/backend/rewrites/edit.html Rewrites\Edit

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

The admin template receives
VariableTypeDescription
$rewrite Rewrite Retrieved Rewrite record

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

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

rewrites/backend/rewrites/manage.html Rewrites\Manage

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

The admin template receives
VariableTypeDescription
$rewrites Collection<Rewrite> Collection of Rewrites

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

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