maks757/yii2-data-articles

There is no license information available for the latest version (1.0.0) of this package.

Articles module.

Installs: 26

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0 2018-03-12 12:50 UTC

README

migration

yii migrate --migrationPath=@vendor/maks757/yii2-data-articles/migrations
yii migrate --migrationPath=@vendor/maks757/embeddable-gallery/migrations

backend config

'modules' => [
    'articles' => [
        'class' => \maks757\articlesdata\ArticleModule::className(),
    ],
    'egallery' => [
        'class' => \maks757\egallery\GalleryModule::className()
    ],
    //...
],

common config

'components' => [
    //start imagine
    'article' => [
        'class' => \maks757\imagable\Imagable::className(),
        'imageClass' => CreateImageMetaMulti::className(),
        'nameClass' => GenerateName::className(),
        'imagesPath' => '@frontend/web/images',
        'categories' => [
            'category' => [
                'article' => [
                    'size' => [
                        'origin' => [
                            'width' => 0,
                            'height' => 0,
                        ],
                        'thumb' => [
                            'width' => 300,
                            'height' => 300,
                        ]
                    ]
                ],
                'images' => [
                    'size' => [
                        'origin' => [
                            'width' => 0,
                            'height' => 0,
                        ],
                        'thumb' => [
                            'width' => 300,
                            'height' => 300,
                        ]
                    ]
                ]
            ]
        ]
    ],
    'egallery' => [
        'class' => \maks757\imagable\Imagable::className(),
        'imageClass' => CreateImageMetaMulti::className(),
        'nameClass' => GenerateName::className(),
        'imagesPath' => '@frontend/web/images',
        'categories' => [
            'category' => [
                'egallery' => [
                    'size' => [
                        'origin' => [
                            'width' => 0,
                            'height' => 0,
                        ],
                        'thumb' => [
                            'width' => 300,
                            'height' => 300,
                        ]
                    ]
                ]
            ]
        ]
    ],
    //end imagine
    //...
],

Alt text

VK
Google
GitHub