startpl/t2cms-blog

Nested category, post for multilanguage, multidomain site

Installs: 19

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0 2020-09-15 13:04 UTC

This package is not auto-updated.

Last update: 2024-04-25 21:42:49 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.)