ProBlog

A powerful October CMS Blog plugin. Boost your SEO with robust blogging tools by Radiantweb.

Back to ProBlog Support

paulgrafx
paulgrafx

When creating a new tag it still allows Apostrophe's and other characters in the slug.

The Livetag.php protected function getOrCreateTag($tagname) needs changing from...

if ($tag == null) {
    $slug = strtolower(str_replace(' ','-',$tagname));
    $tag = TagModel::create(array('name' => $tagname, 'slug' => $slug));
}

to...

if ($tag == null) {
    $slug = str_slug($tagname);
    $tag = TagModel::create(array('name' => $tagname, 'slug' => $slug));
}

Last updated

ChadStrat
ChadStrat

much nicer. thank you! next push will have this.

paulgrafx

1-3 of 3