共享顶级栏目 :{category module=share pid=0 num=10}{/category}
一级二级栏目 :
{category module=share pid=0}
{if $t.child}{/if}
{category module=share pid=$t.id return=t2}
{if IS_SHARE && $catid && dr_in_array($catid, $t2.catids)} active{/if}
{if $t2.child}{/if}
{/category}
{/category}
栏目一级二级三级 :
{category module=share pid=0}
{if $t.child}{/if}
{category module=share pid=$t.id return=t2}
{if IS_SHARE && $catid && dr_in_array($catid, $t2.catids)} active{/if}
{if $t2.child}{/if}
{category module=share pid=$t2.id return=t3}
{if IS_SHARE && $catid && dr_in_array($catid, $t3.catids)} active{/if}
{/category}
{/category}
{/category}
栏目与文档 :
{category module=share pid=0}
{$t.name}{$t.url}
{module module=$t.mid catid=$t.id num=10 cache=1 return=t2}
{$t2.title}{$t2.url}
{/module}
{/category}
指定单个栏目 :{category module=share id=1}{$t.url}{/category}
调用隐藏栏目 :{category module=share id=1 show=1}{$t.name}{/category}
调用栏目和附带SEO信息 :
{category module=share id=1 more=1}
{$t['setting']['seo']['list_title']}
{$t['setting']['seo']['list_keywords']}
{$t['setting']['seo']['list_description']}
{/category}
上一篇:迅睿cms全局变量目录链接标签