skeeks/cms-seo

Component seo for SkeekS CMS

Installs: 4 794

Dependents: 3

Suggesters: 0

Stars: 1

Watchers: 3

Forks: 3

Type:yii2-extension

2.1.9.4 2019-08-15 18:10 UTC

README

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist skeeks/cms-seo "*"

or add

"skeeks/cms-seo": "*"

Configuration app


'bootstrap' => ['seo'],

'components' =>
[
    'seo' => [
        'class'     => 'skeeks\cms\seo\CmsSeoComponent',
        
        'canUrl' => [
            'scheme' => 'https',
            'host' => 'site.ru',
        ],
        
        
    ],

    'i18n' => [
        'translations' =>
        [
            'skeeks/seo' => [
                'class'             => 'yii\i18n\PhpMessageSource',
                'basePath'          => '@skeeks/cms/seo/messages',
                'fileMap' => [
                    'skeeks/seo' => 'main.php',
                ],
            ]
        ]
    ],

    'urlManager' => [
        'rules' => [
            'robots.txt'                  => '/seo/robots/on-request',
            'sitemap.xml'                 => '/seo/sitemap/on-request',
        ]
    ]
],

'modules' =>
[
    'seo' => [
        'class'         => 'skeeks\cms\seo\CmsSeoModule',
    ]
]

skeeks!
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com