TemplatesBlogs module
Blogs templates
Default templates the Blogs 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
blogs/backend/blogs/add.html
Blogs\Add
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$blog |
Blog |
Single (empty) Blog record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/blogs/backend/blogs/add.html in your site repository.
blogs/backend/blogs/edit.html
Blogs\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$blog |
Blog |
Retrieved Blog record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/blogs/backend/blogs/edit.html in your site repository.
blogs/backend/blogs/manage.html
Blogs\Manage
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$blogs |
Collection<Blog> |
Collection of Blogs |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/blogs/backend/blogs/manage.html in your site repository.
blogs/backend/comments/add.html
Comments\Add
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$comment |
Comment |
Single (empty) Comment record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/blogs/backend/comments/add.html in your site repository.
blogs/backend/comments/edit.html
Comments\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$comment |
Comment |
Retrieved Comment record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/blogs/backend/comments/edit.html in your site repository.
blogs/backend/comments/manage.html
Comments\Manage
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$comments |
Collection<Comment> |
Collection of Comments |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/blogs/backend/comments/manage.html in your site repository.
blogs/backend/posts/add.html
Posts\Add
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$post |
Post |
Single (empty) Post record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/blogs/backend/posts/add.html in your site repository.
blogs/backend/posts/edit.html
Posts\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$post |
Post |
Retrieved Post record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/blogs/backend/posts/edit.html in your site repository.
blogs/backend/posts/manage.html
Posts\Manage
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$posts |
Collection<Post> |
Collection of Posts |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/blogs/backend/posts/manage.html in your site repository.