联系官方销售客服
1835022288
028-61286886
模板标签里面
news/search.html筛选如何指定栏目范围
比如我已经有两个单选字段做筛选:区域quyu,类别cpkey,但执行筛选时是针对news模块内全部的栏目。
问题:有的栏目我不希望参与筛选,比如单页栏目。
问:这个筛选如何指定他们只在栏目catid为4,5,6,7内进行
<div class="portlet-body form fc-search-param">
<div class="form-body">
<div class="form-group row">
<label class="col-md-2 control-label">所在区域:</label>
<div class="col-md-9">
<label><a class="label {if !$params.quyu}label-success{else}label-default{/if}" href="{Router::search_url($params, 'quyu', NULL)}">不限</a></label>
{php $field = dr_field_options($ci->module['field']['quyu']['id']);}
{loop $field $value $name}
<label><a class="label {if $value==$params.quyu}label-success{else}label-default{/if}" href="{Router::search_url($params, 'quyu', $value)}">{$name}</a></label>
{/loop}
</div>
</div>
<div class="form-group row">
<label class="col-md-2 control-label">产品类别:</label>
<div class="col-md-9">
<label><a class="label {if !$params.cpkey}label-success{else}label-default{/if}" href="{Router::search_url($params, 'cpkey', NULL)}">不限</a></label>
{php $field = dr_field_options($ci->module['field']['cpkey']['id']);}
{loop $field $value $name}
<label><a class="label {if $value==$params.cpkey}label-success{else}label-default{/if}" href="{Router::search_url($params, 'cpkey', $value)}">{$name}</a></label>
{/loop}
</div>
</div>
</div>
</div>
<div class="portlet-body form fc-search-param">
<div class="form-body">
<div class="form-group row">
<label class="col-md-2 control-label">所在区域:</label>
<div class="col-md-9">
<label><a class="label {if !$params.quyu}label-success{else}label-default{/if}" href="{Router::search_url($params, 'quyu', NULL)}">不限</a></label>
{php $field = dr_field_options($ci->module['field']['quyu']['id']);}
{loop $field $value $name}
<label><a class="label {if $value==$params.quyu}label-success{else}label-default{/if}" href="{Router::search_url($params, 'quyu', $value)}">{$name}</a></label>
{/loop}
</div>
</div>
<div class="form-group row">
<label class="col-md-2 control-label">产品类别:</label>
<div class="col-md-9">
<label><a class="label {if !$params.cpkey}label-success{else}label-default{/if}" href="{Router::search_url($params, 'cpkey', NULL)}">不限</a></label>
{php $field = dr_field_options($ci->module['field']['cpkey']['id']);}
{loop $field $value $name}
<label><a class="label {if $value==$params.cpkey}label-success{else}label-default{/if}" href="{Router::search_url($params, 'cpkey', $value)}">{$name}</a></label>
{/loop}
</div>
</div>
</div>
</div>