screening 文档筛选
typeid='' 专用于首页筛选,首页调用标签一定要指定栏目ID
请查阅易优数据字典,找到表名 ey_channelfield 、ey_article_content
-------------------------------效果预览--------------------------------
官方的源码频道也用到,如图所示
【更多示例】
{/eyou:screening}
{eyou:screening id='field' currentstyle='active' }
{eyou:volist name='$field.list' id='vo'}
<dl class="clearfix">
<dt class="text-main">{$vo.title}:</dt>
<dd>
<div class="filter-nav">
<ul>
{eyou:volist name='$vo.dfvalue' id='val'}
<li><a {$val.onClick} class="radius-rounded {$val.currentstyle}">{$val.name}</a></li>
{/eyou:volist}
</ul>
</div>
</dd>
</dl>
<!-- 二级输出标签,未选择一级时隐藏 -->
{eyou:volist name='$vo.dfvalue' id='val'}
{notempty name="$val.twoLevelArr"}
<dl class="clearfix">
<dt class="text-main">城市:</dt>
<dd>
<div class="filter-nav">
<ul>
{eyou:volist name='$val.twoLevelArr' id='two'}
<li><a {$two.onClick} class="radius-rounded {$two.currentstyle}">{$two.name}</a></li>
{/eyou:volist}
</ul>
</div>
</dd>
</dl>
<!-- 三级输出标签,未选择一级时隐藏 -->
{eyou:volist name='$val.twoLevelArr' id='two'}
{notempty name="$two.threeLevelArr"}
<dl class="clearfix">
<dt class="text-main">区县:</dt>
<dd>
<div class="filter-nav">
<ul>
{eyou:volist name='$two.threeLevelArr' id='three'}
<li><a {$three.onClick} class="radius-rounded {$three.currentstyle}">{$three.name}</a></li>
{/eyou:volist}
</ul>
</div>
</dd>
</dl>
{/notempty}
{/eyou:volist}
{/notempty}
{/eyou:volist}
{/eyou:volist}
{$field.hidden}
{/eyou:screening}