TemplatesHooks module
Hooks templates
Default templates the Hooks 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
hooks/backend/actions/add.html
Actions\Add
Add a new record. Assigns an empty record to the template.
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/hooks/backend/actions/add.html in your site repository.
hooks/backend/actions/edit.html
Actions\Edit
Retrieve a single record and display the edit page for the record
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/hooks/backend/actions/edit.html in your site repository.
hooks/backend/actions/manage.html
Actions\Manage
Retrieve available records and assign them to the template for editing.
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/hooks/backend/actions/manage.html in your site repository.
hooks/backend/batch-actions/edit.html
BatchActions\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$batchAction |
BatchAction |
Retrieved BatchAction record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/hooks/backend/batch-actions/edit.html in your site repository.
hooks/backend/batch-actions/manage.html
BatchActions\Manage
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$batchActions |
Collection<BatchAction> |
Collection of BatchActions |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/hooks/backend/batch-actions/manage.html in your site repository.
hooks/backend/batches/edit.html
Batches\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$batch |
Batch |
Retrieved Batch record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/hooks/backend/batches/edit.html in your site repository.
hooks/backend/batches/manage.html
Batches\Manage
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$batches |
Collection<Batch> |
Collection of Batches |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/hooks/backend/batches/manage.html in your site repository.
hooks/backend/categories/add.html
Categories\Add
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$category |
Category |
Single (empty) Category record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/hooks/backend/categories/add.html in your site repository.
hooks/backend/categories/edit.html
Categories\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$category |
Category |
Retrieved Category record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/hooks/backend/categories/edit.html in your site repository.
hooks/backend/categories/manage.html
Categories\Manage
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$categories |
Collection<Category> |
Collection of Categories |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/hooks/backend/categories/manage.html in your site repository.
hooks/backend/hooks/add.html
Hooks\Add
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$hook |
Hook |
Single (empty) Hook record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/hooks/backend/hooks/add.html in your site repository.
hooks/backend/hooks/edit.html
Hooks\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$hook |
Hook |
Retrieved Hook record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/hooks/backend/hooks/edit.html in your site repository.
hooks/backend/hooks/manage.html
Hooks\Manage
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$hooks |
Collection<Hook> |
Collection of Hooks |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/hooks/backend/hooks/manage.html in your site repository.