Example #1
0
 public function behaviors()
 {
     return [TimestampBehavior::className(), BlameableBehavior::className(), PositionBehavior::className(), CacheBehavior::className(), TreeBehavior::className(), ['class' => AdminLogBehavior::className(), 'titleAttribute' => 'title', 'icon' => 'fa-map-signs bg-dark-olive-green'], ['class' => TranslateableBehavior::className(), 'translationAttributes' => ['title', 'link'], 'translationLanguageAttribute' => 'locale']];
 }
Example #2
0
 public function behaviors()
 {
     return [TimestampBehavior::className(), BlameableBehavior::className(), ['class' => PositionBehavior::className(), 'parentIdAttribute' => 'slider_id'], CacheBehavior::className(), ['class' => AdminLogBehavior::className(), 'titleAttribute' => 'title', 'icon' => 'fa-sliders bg-tan'], ['class' => ImageUploadBehavior::className(), 'attribute' => 'image', 'thumbs' => ['slide' => ['width' => 1400, 'height' => 730]], 'filePath' => '@frontend/web/uploads/slide/[[pk]]/[[pk]].[[extension]]', 'fileUrl' => '/uploads/slide/[[pk]]/[[pk]].[[extension]]', 'thumbPath' => '@frontend/web/uploads/slide/[[pk]]/[[profile]]_[[pk]].[[extension]]', 'thumbUrl' => '/uploads/slide/[[pk]]/[[profile]]_[[pk]].[[extension]]'], ['class' => TranslateableBehavior::className(), 'translationAttributes' => ['title', 'description', 'link'], 'translationLanguageAttribute' => 'locale'], ['class' => SortableGridBehavior::className(), 'sortableAttribute' => 'position']];
 }
Example #3
0
 public function behaviors()
 {
     return [TimestampBehavior::className(), BlameableBehavior::className(), PositionBehavior::className(), CacheBehavior::className(), TreeBehavior::className(), ['class' => AdminLogBehavior::className(), 'titleAttribute' => 'title', 'icon' => 'fa-cubes bg-lime'], ['class' => TranslateableBehavior::className(), 'translationAttributes' => ['title', 'slug', 'body', 'meta_title', 'meta_keywords', 'meta_description'], 'translationLanguageAttribute' => 'locale']];
 }