black-lamp / blcms-staticpage
Module for static pages
Installs: 675
Dependents: 5
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 1
Open Issues: 3
Type:yii2-extension
Requires
- php: >=5.4.0
- 2amigos/yii2-tinymce-widget: *
- black-lamp/yii2-multi-lang: ^1.0.0
- black-lamp/yii2-seo: 0.1.*
- yii2tech/ar-position: *
- yiisoft/yii2: >=2.0.4
- yiisoft/yii2-bootstrap: *
README
Static pages seo-data extention for BlackLamp CMS
php yii migrate --migrationPath=@yii/rbac/migrations php yii migrate --migrationPath=@vendor/black-lamp/blcms-staticpage/migrations
Roles and its permissions:
staticPageManager
- viewStaticPages
- editStaticPage
- deleteStaticPage
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();