SEO module for Yii 2
Installation
The preferred way to install this extension is through composer., (*1)
Either run, (*2)
php composer.phar require --prefer-dist webvimark/module-seo-panel "*"
or add, (*3)
"webvimark/module-seo-panel": "*"
to the require section of your composer.json
file., (*4)
Configuration
In your config/web.php, (*5)
'modules'=>[
...
'seo-panel' => [
'class' => 'webvimark\modules\SeoPanel\SeoPanelModule',
],
...
],
Usage
1 Go to http://site.com/seo-panel/global-meta-tag/index
1 Go to http://site.com/seo-panel/page-meta-tag/index
1 Go to http://site.com/seo-panel/robots/index, (*6)
In layouts/main.php (or whatever main layout) put this line before title.
For example near AppAsset::register($this);, (*7)
SeoPanelHelper::registerMetaTags($this);