Commit 4e70ac93 authored by Shakarim Sapa's avatar Shakarim Sapa

- Fix

parent 6ffb9010
......@@ -27,12 +27,12 @@ $blocks = \common\modules\content\models\CoBlocks::find()->all();
/** @var \common\modules\content\models\CoCategory $category */
$category = \common\modules\content\models\CoCategory::findOne($id);
if (!is_null($category)) {
echo Html::hiddenInput('CoContent[category]', $category->name);
echo Html::hiddenInput('CoContent[category_id]', $category->name, ['value' => $id]);
}
?>
<?php
if($model->category_id!=CoContent::BLOG_ID):
if($id!=CoContent::CASE_ID):
echo $form->field($model, 'url')->textInput(['maxlength' => 250])->hint('Для создания ЧПУ («Человеку Понятный Урл») укажите латинскими буквами путь, например, razdel/podrazdel/nazvanie_stranici.html');
else:
/** @var CoContent[] $items */
......
......@@ -38,7 +38,7 @@ class CoContent extends \common\components\ActiveRecordModel
const TYPE_SIMPLE = 0;
const TYPE_LANDING = 1;
const BLOG_ID = 4;
const CASE_ID = 4;
const PROJECT_ID = 5;
public $copyLangs;
......
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