TemplatesBooks module
Books templates
Default templates the Books 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.
Admin view
books/backend/books/add.html
Books\Add
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$book |
Book |
Single (empty) Book record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/books/backend/books/add.html in your site repository.
books/backend/books/edit.html
Books\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$book |
Book |
Retrieved Book record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/books/backend/books/edit.html in your site repository.
books/backend/books/manage.html
Books\Manage
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$books |
Collection<Book> |
Collection of Books |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/books/backend/books/manage.html in your site repository.
books/backend/pages/add.html
Pages\Add
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$page |
Page |
Single (empty) Page record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/books/backend/pages/add.html in your site repository.
books/backend/pages/edit.html
Pages\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$page |
Page |
Retrieved Page record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/books/backend/pages/edit.html in your site repository.
books/backend/units/add.html
Units\Add
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$unit |
Unit |
Single (empty) Unit record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/books/backend/units/add.html in your site repository.
books/backend/units/edit.html
Units\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$unit |
Unit |
Retrieved Unit record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/books/backend/units/edit.html in your site repository.