startpl/t2cms-blog
Composer 安装命令:
composer require startpl/t2cms-blog
包简介
Nested category, post for multilanguage, multidomain site
README 文档
README
Nested category, post for multilanguage, multidomain site
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist startpl/t2cms-blog "*"
or add
"startpl/t2cms-blog": "*"
to the require section of your composer.json file.
and add the module to backend config:
'modules' => [ //... 'blog' => [ 'class' => 'startpl\t2cmsblog\backend\Module', ], //... ],
Also you need add the module to frontend config:
'modules' => [ //... 'blog' => [ 'class' => 'startpl\t2cmsblog\frontend\Module', ], //... ], 'urlManager' => [ 'rules' => [ [ 'class' => 'startpl\t2cmsblog\components\CategoryUrlRule', //'prefix' => 'blog' ], [ 'class' => 'startpl\t2cmsblog\components\PageUrlRule', //'prefix' => 'blog' ], ], ],
Then you should start the migration (console):
php yii migrate --migrationPath=@vendor/startpl/t2cms-blog/migrations
Usage
Go to backend /blog/categories or /blog/pages
Also you can clone this repository for create your extension (for example, a store, etc.)
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2020-09-16