cms

CMS栏目更改为显示栏目内容

发布于 2020-03-18 13:51:25

1.修改后台编辑

admin/views/cms/channl/edit.html

    <div class="form-group">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content"  class="form-control editor" name="row[content]" rows="15">{$row.content|htmlentities}</textarea>
        </div>
    </div>

2.admin/controller/cms/Channel

注释掉下面一行

//$this->request->filter(['strip_tags']);

0 条评论

发布
问题