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.

View cdna-admin screens you can override in your site repository.

Admin view

menus/backend/elements/add.html Elements\Add

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

The admin template receives
VariableTypeDescription
$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

The admin template receives
VariableTypeDescription
$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.

The admin template receives
VariableTypeDescription
$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.

The admin template receives
VariableTypeDescription
$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

The admin template receives
VariableTypeDescription
$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.

The admin template receives
VariableTypeDescription
$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.