maks757/yii2-data-articles-not-multi

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

Articles module.

0.1.001 2017-08-29 13:19 UTC

This package is not auto-updated.

Last update: 2024-11-24 03:46:46 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' => [
        '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,
                            ]
                        ]
                    ],
                    'images' => [
                        'size' => [
                            'origin' => [
                                'width' => 0,
                                'height' => 0,
                            ]
                        ]
                    ]
                ]
            ]
        ],
        '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,
                            ]
                        ]
                    ]
                ]
            ]
        ],
        //...
    ],

Alt text

VK
Google
GitHub