752

Product support

Visit this product's website for support.

  • Added on Sep 3, 2020
  • Current version: 1.0.2
  • Platform Compatibility
    v3.x not tested
    v2.x not tested
    v1.x use latest
  • Created by
  • Public repository

Categories

About

On the basis of blog plug-in, the classification SEO is added to facilitate the search engine search

Require

RainLab.Blog

USE

  • Add in the layout file

    {% set title = this.page.id == 'home' ? 'my blog' : this.page.title ~ ' - ' ~ 'my blog' %}
    
    <title>{{ title }}</title>
    
    <meta name="title" content="{{ title }}">
    
    {% set keywords = this.page.keywords ?: 'default keywords' %}
    
    <meta name="keywords" content="{{ keywords }}">
    
    {% set description = this.page.description ?: this.theme.whoami %}
    
    <meta name="description" content="{{ description }}">
  • Add in blog category page file

    <?php
    function onEnd()
    {
      if (isset($this['category'])) {
        $this->page->title = $this->category->tingfeng_blogcategory_title;
        $this->page->keywords = $this->category->tingfeng_blogcategory_keywords;
        $this->page->description = $this->category->description;
      }
      else {
        return $this->controller->run('/404');
      }
    }
    ?>

Installation ready to use

1.0.2

fix form error

Sep 04, 2020

1.0.1

fix table colums prefix

Sep 03, 2020

1.0.0

Initialize plugin.

Sep 02, 2020