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