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.
Templates view
custom-entities/records/index.html
Records\Index
Retrieve a list of records and assign them to the template.
| Variable | Type | Description |
|---|---|---|
$records |
Collection<Record> |
Collection of Records |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Override it: create templates/custom-entities/records/index.html in your site repository.
custom-entities/records/show.html
Records\Show
Show a single record
| Variable | Type | Description |
|---|---|---|
$record |
Record |
Single Record record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Override it: create templates/custom-entities/records/show.html in your site repository.