TemplatesMenus module
Menus templates
Default templates the Menus 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
menus/backend/elements/add.html
Elements\Add
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$element |
Element |
Single (empty) Element record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/menus/backend/elements/add.html in your site repository.
menus/backend/elements/edit.html
Elements\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$element |
Element |
Retrieved Element record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/menus/backend/elements/edit.html in your site repository.
menus/backend/elements/manage.html
Elements\Manage
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$elements |
Collection<Element> |
Collection of Elements |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/menus/backend/elements/manage.html in your site repository.
menus/backend/menus/add.html
Menus\Add
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$menu |
Menu |
Single (empty) Menu record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/menus/backend/menus/add.html in your site repository.
menus/backend/menus/edit.html
Menus\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$menu |
Menu |
Retrieved Menu record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/menus/backend/menus/edit.html in your site repository.
menus/backend/menus/manage.html
Menus\Manage
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$menus |
Collection<Menu> |
Collection of Menus |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/menus/backend/menus/manage.html in your site repository.