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.
Admin view
rewrites/backend/rewrites/add.html
Rewrites\Add
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$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
| Variable | Type | Description |
|---|---|---|
$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.
| Variable | Type | Description |
|---|---|---|
$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.