Answer the question
In order to leave comments, you need to log in
How to display additional content on the category page?
Rainlab's blog is installed in October cms. The blog works normally. It has several categories. If you go to the category 1 page, then it will display posts related to this category 1.
In the admin panel for a category, you can fill in only 2 fields (name and description).
The title I use for title (meta)
The description I use for description (meta)
It works like this:
<?php
function onEnd()
{
if ($this->category)
$this->page->title = $this->category-> name;
$this->page->description = $this->category-> description;
}
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question