${text(category.isNewRecord ? '新增栏目' : '编辑栏目')}
<#form:treeselect id="parent" title="${text('上级栏目')}"
path="parent.id" labelPath="parent.categoryName"
url="${ctx}/cms/category/treeData?excludeCode=${category.id}"
class="" allowClear="true" canSelectRoot="true"
canSelectParent="true" />
<#form:select path="site.siteCode" items="${@CmsUtils.getSiteList()}" itemLabel="siteName" itemValue="siteCode" class="form-control required" />
<#form:hidden path="isNewRecord" />
<#form:input path="categoryCode" maxlength="64" readonly="${!category.isNewRecord}"
class="form-control required abc" />
<#form:select path="moduleType" dictType="cms_module_type" blankOption="true" class="form-control required" />
<#form:input path="categoryName" maxlength="100" class="form-control required" />
<#form:input path="treeSort" class="form-control required digits" />
<#form:fileupload id="uploadImage" bizKey="${category.id}" bizType="category_image"
returnPath="true" filePathInputId="image" uploadType="image" readonly="false"
maxUploadNum="1" isMini="false" />
<#form:input path="image" maxlength="255" class="form-control" />
<#form:input path="href" maxlength="255" placeholder="栏目超链接地址,优先级“高”" class="form-control" />
<#form:input path="target" maxlength="20" placeholder="栏目超链接打开的目标窗口,新窗口打开,请填写:“_blank”" class="form-control" />
<#form:input path="description" maxlength="500" placeholder="填写描述,有助于搜搜引擎优化" class="form-control" />
<#form:input path="keywords" maxlength="500" placeholder="填写关键词,有助于搜索引擎优化" class="form-control" />
${text('栏目配置')}
<#form:radio path="inMenu" dictType="sys_show_hide" class="form-control" />
<#form:radio path="isCanComment" dictType="sys_yes_no" class="form-control" />
<#form:radio path="inList" dictType="sys_show_hide" class="form-control" />
<#form:radio path="isNeedAudit" dictType="sys_yes_no" class="form-control" />
<#form:radio path="showModes" dictType="cms_show_modes" class="form-control" />
<#form:select path="customListView" items="${listViewList}" itemLabel="id" itemValue="id" blankOption="true" class="form-control " />
<#form:select path="customContentView" items="${contentViewList}" itemLabel="id" itemValue="id" blankOption="true" class="form-control " />
<#form:input path="viewConfig" maxlength="1000" class="form-control"
placeholder="视图参数例如: {count:2, title_show:'yes'} 则在视图文件中的获取方法是:${'${'}viewConfig_count}、${'${'}viewConfig_titleShow}" />
- 例如视图参数设置为:count:2,titleShow:'yes'则在视图文件中的获取方法是:\${viewConfig_count}、\${viewConfig_titleShow}。
- 设置栏目的管理地址:若设置【adminUrl:false】表示无管理地址,在内容发布栏目列表中不显示该栏目;
- 设置【adminUrl:'/cms/guestbook'】表示有管理地址,在内容发布栏目列表中点击该栏目链接到该地址。
${text('其他信息')}
<#form:textarea path="remarks" rows="4" maxlength="500" class="form-control" />