This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Nerijus
Nerijus

Hi. is it possible to use /blog/category/:slug as a page title

in this case title value would be a :slug (title = :slug)

<h1><p>{{ this.page.title }}</p></h1> Thank you for your comments.

Last updated

mjauvin
mjauvin

No, but you can assign the page title from the onStart() method using the slug...

goncalo.dumas60210
goncalo.dumas60210

This worked for me.

Based on the example given on the blog plugin documentation.

function onEnd()
{
    // Optional - set the page title to the post title
    if (isset($this->category))
        $this->page->title = $this->category->name;
}

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.