Skip to content

maks757/seo-static-page

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seo static page

Static pages seo-data extension

php yii migrate --migrationPath=@vendor/maks757/seo_static_page/migrations

Usage

Add behavior to controller with unique key. This key you will use in admin panel of module for setting this page:

public function behaviors()
    {
        return [
            'staticPage' => [
                'class' => StaticPageBehavior::className(),
                'key' => 'shop'
            ]
        ];
    }

Then add in action next record. It adds to your page title, meta-description and meta-keywords:

$this->registerStaticSeoData();

About

Static pages seo-data extention for BlackLamp CMS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%