maks757 / yii2-data-events
Events module.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- 2amigos/yii2-tinymce-widget: ~1.1
- kartik-v/yii2-widget-fileinput: *
- maks757/languages: *
- maks757/yii2-imagable: *
- yiisoft/yii2: >=2.0.4
- yiisoft/yii2-jui: ~2.0.0
This package is not auto-updated.
Last update: 2024-11-24 03:41:03 UTC
README
backend config
'modules' => [ 'articles' => [ 'class' => \maks757\articlesdata\ArticleModule::className(), // activate multi language 'multi_languages' => true, // default false 'language_class' => Object::className(), // yor language model, ( Language::className() ) 'language_default' => 1, // yor language model, param id ( Language::find()->one()->id or Language::find()->one()->getPrimaryKey() ) 'language_where' => ['show' => true], // yor language model, method where() 'language_field' => 'name' // yor language model, field name language ], //... ],
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, ] ] ] ] ] ], //... ],