TemplatesSites module

Sites templates

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

sites/backend/clients/add.html Clients\Add

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

The admin template receives
VariableTypeDescription
$client Client Single (empty) Client record

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

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

sites/backend/clients/edit.html Clients\Edit

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

The admin template receives
VariableTypeDescription
$client Client Retrieved Client record

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

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

sites/backend/clients/manage.html Clients\Manage

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

The admin template receives
VariableTypeDescription
$clients Collection<Client> Collection of Clients

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

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

sites/backend/environments/add.html Environments\Add

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

The admin template receives
VariableTypeDescription
$environment Environment Single (empty) Environment record

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

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

sites/backend/environments/edit.html Environments\Edit

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

The admin template receives
VariableTypeDescription
$environment Environment Retrieved Environment record

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

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

sites/backend/environments/manage.html Environments\Manage

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

The admin template receives
VariableTypeDescription
$environments Collection<Environment> Collection of Environments

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

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

sites/backend/site-data/add.html SiteData\Add

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

The admin template receives
VariableTypeDescription
$siteData SiteData Single (empty) SiteData record

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

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

sites/backend/site-data/edit.html SiteData\Edit

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

The admin template receives
VariableTypeDescription
$siteData SiteData Retrieved SiteData record

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

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

sites/backend/site-data/manage.html SiteData\Manage

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

The admin template receives
VariableTypeDescription
$siteData Collection<SiteData> Collection of SiteData

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

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

sites/backend/sites/add.html Sites\Add

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

The admin template receives
VariableTypeDescription
$site Site Single (empty) Site record

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

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

sites/backend/sites/edit.html Sites\Edit

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

The admin template receives
VariableTypeDescription
$site Site Retrieved Site record

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

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

sites/backend/sites/manage.html Sites\Manage

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

The admin template receives
VariableTypeDescription
$sites Collection<Site> Collection of Sites

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

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