black-lamp/blcms-staticpage
Composer 安装命令:
composer require black-lamp/blcms-staticpage
包简介
Module for static pages
README 文档
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();
统计信息
- 总下载量: 683
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2016-07-01