Commit d26c8281 authored by andre's avatar andre

Merge branch 'blog-hashtag-filtr'

parents 15e68bab 90042346
......@@ -166,6 +166,8 @@ class CasesAdminController extends AdminController {
{
$model = $this->findModel($id);
$model->previewType = $model->previewType ? $model->previewType : new CasesPreviewType();
Yii::$app->controller->page_title = 'Редактировать страницу';
Yii::$app->controller->breadcrumbs = [
......@@ -212,7 +214,8 @@ class CasesAdminController extends AdminController {
public function actionCopy($id)
{
$model = $this->findModel($id);
$model->previewType = $model->previewType ? $model->previewType : new CasesPreviewType();
$model->url = null;
Yii::$app->controller->page_title = 'Копирование страницы';
......
......@@ -85,7 +85,7 @@ $blocks = \common\modules\content\models\CoBlocks::find()->all();
<?= $form->field($model->previewType, 'tag')->textInput(['maxlength' => 255]) ?>
<?php if($model->preview)
<?php if($model->preview)
{
echo Html::img(\Yii::$app->params['frontUrl'] . $model->preview);
} ?>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment