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 cdna-admin screens you can override in your site repository.

Admin view

blogs/backend/blogs/add.html Blogs\Add

Add a new record. Assigns an empty record to the template.

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

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

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

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

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

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

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

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

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