startpl / t2cms-blog
Nested category, post for multilanguage, multidomain site
1.0.0
2020-09-15 13:04 UTC
Requires
This package is not auto-updated.
Last update: 2026-02-27 06:42:18 UTC
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.)