{eyou:channel type="first"} <h2>{$field.typename}</h2> {eyou:notempty name="$field.children"} <ul> {eyou:channel name="$field.children" id="field2"} <li> <a href="{$field2.typeurl}">{$field2.typename}</a> {eyou:arclist typeid='$field2.typeid' titlelen='20' id="field3"} <a href="{$field3.arcurl}">{$field3.title}</a> {/eyou:arclist} </li> {/eyou:channel} </ul> {/eyou:notempty} {/eyou:channel}
分别列出第二级的栏目名称、链接、图片,第三级的栏目名称、链接、图片及第三级各栏目下的文章
{eyou:channelartlist typeid='4'} {eyou:channel type='son'} <a href="{$field.typeurl}" title="{$field.typename}">{$field.typename}<img src="{$field.litpic}" alt="{$field.typename}"></a> {eyou:arclist typeid='$field.typeid' titlelen='20' id="field2"} {eyou:arcview id='field2'} {eyou:volist name="$field2.image_list" id='field3' row='1'} <a href="{$field2.arcurl}" target="_blank"><img src="{$field3.image_url}" alt="{$field2.title}">{$field2.title}</a> {/eyou:volist} {/eyou:arcview} {/eyou:arclist} {/eyou:channel} {/eyou:channelartlist}
二级分类下,输出二级分类名称、链接,图片及二级下的文章标题、链接、图片及文章下的图集、描述。
{eyou:arclist typeid='264' titlelen='70' row='3' } {eyou:if condition="$i%2 =='0'"} <img src="{$field.litpic}"> {$field.title} {eyou:else /} {$field.title} <img src="{$field.litpic}"> {/eyou:if} {/eyou:arclist}
标签实现如果是偶数,图片在上,字在下,否则,相反。
{eyou:arclist typeid='121' limit='0,10' mod='3'} <li {eyou:eq name='mod' value='0'}class="样式名"{/eyou:eq}> <a href='{$field.arcurl}'>{$field.title}</a> </li> {/eyou:arclist}
上面是每个3行输出一个class
加技术微信沟通更方便