TemplatesCustomEntities module

CustomEntities templates

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

custom-entities/backend/definitions/add.html Definitions\Add

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

The admin template receives
VariableTypeDescription
$definition Definition Single (empty) Definition record

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

Customise this admin screen: create templates/custom-entities/backend/definitions/add.html in your site repository.

custom-entities/backend/definitions/edit.html Definitions\Edit

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

The admin template receives
VariableTypeDescription
$definition Definition Retrieved Definition record

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

Customise this admin screen: create templates/custom-entities/backend/definitions/edit.html in your site repository.

custom-entities/backend/definitions/manage.html Definitions\Manage

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

The admin template receives
VariableTypeDescription
$definitions Collection<Definition> Collection of Definitions

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

Customise this admin screen: create templates/custom-entities/backend/definitions/manage.html in your site repository.

custom-entities/backend/records/add.html Records\Add

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

The admin template receives
VariableTypeDescription
$record Record Single (empty) Record record

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

Customise this admin screen: create templates/custom-entities/backend/records/add.html in your site repository.

custom-entities/backend/records/edit.html Records\Edit

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

The admin template receives
VariableTypeDescription
$record Record Retrieved Record record

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

Customise this admin screen: create templates/custom-entities/backend/records/edit.html in your site repository.

custom-entities/backend/records/manage.html Records\Manage

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

The admin template receives
VariableTypeDescription
$records Collection<Record> Collection of Records

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

Customise this admin screen: create templates/custom-entities/backend/records/manage.html in your site repository.