maks757 / seo_static_page
Module for static pages
Installs: 38
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Type:yii2-extension
Requires
- php: >=5.4.0
- 2amigos/yii2-tinymce-widget: *
- maks757/yii2-seo: *
- yii2tech/ar-position: *
- yiisoft/yii2: >=2.0.4
- yiisoft/yii2-bootstrap: *
This package is not auto-updated.
Last update: 2024-11-24 03:09:19 UTC
README
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();