maks757/yii2-data-articles

该包的最新版本(1.0.0)没有提供许可证信息。

文章模块。

安装: 26

依赖项: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:yii2-extension

1.0.0 2018-03-12 12:50 UTC

README

迁移

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

后端配置

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

公共配置

'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