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.

View Default templates of the public site.

Templates view

blogs/blogs/index.html Blogs\Index

Retrieve a list of records and assign them to the template.

The template receives
VariableTypeDescription
$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.

The template receives
VariableTypeDescription
$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

The template receives
VariableTypeDescription
$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.