TemplatesSearch module

Search templates

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

search/backend/facets-index-fields/add.html FacetsIndexFields\Add

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

The admin template receives
VariableTypeDescription
$facetsIndexField FacetsIndexField Single (empty) FacetsIndexField record

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

Customise this admin screen: create templates/search/backend/facets-index-fields/add.html in your site repository.

search/backend/facets-index-fields/edit.html FacetsIndexFields\Edit

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

The admin template receives
VariableTypeDescription
$facetsIndexField FacetsIndexField Retrieved FacetsIndexField record

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

Customise this admin screen: create templates/search/backend/facets-index-fields/edit.html in your site repository.

search/backend/facets-index-fields/manage.html FacetsIndexFields\Manage

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

The admin template receives
VariableTypeDescription
$facetsIndexFields Collection<FacetsIndexField> Collection of FacetsIndexFields

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

Customise this admin screen: create templates/search/backend/facets-index-fields/manage.html in your site repository.

search/backend/master-index-fields/add.html MasterIndexFields\Add

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

The admin template receives
VariableTypeDescription
$masterIndexField MasterIndexField Single (empty) MasterIndexField record

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

Customise this admin screen: create templates/search/backend/master-index-fields/add.html in your site repository.

search/backend/master-index-fields/edit.html MasterIndexFields\Edit

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

The admin template receives
VariableTypeDescription
$masterIndexField MasterIndexField Retrieved MasterIndexField record

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

Customise this admin screen: create templates/search/backend/master-index-fields/edit.html in your site repository.

search/backend/master-index-fields/manage.html MasterIndexFields\Manage

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

The admin template receives
VariableTypeDescription
$masterIndexFields Collection<MasterIndexField> Collection of MasterIndexFields

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

Customise this admin screen: create templates/search/backend/master-index-fields/manage.html in your site repository.

search/backend/views/add.html Views\Add

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

The admin template receives
VariableTypeDescription
$view View Single (empty) View record

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

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

search/backend/views/edit.html Views\Edit

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

The admin template receives
VariableTypeDescription
$view View Retrieved View record

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

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

search/backend/views/manage.html Views\Manage

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

The admin template receives
VariableTypeDescription
$views Collection<View> Collection of Views

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

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