一般来说,迅睿CMS当前栏目页,用下面的语句就可以
{category module=share pid=$top.id}{/category} //意思是调用顶级栏目的下级栏目(一般够用)
但是如果你遇到复杂的顶级,一级,二级,用这个标签他只能显示顶级栏目的一级栏目,调用不出来当前顶级栏目的二级栏目
例如:

就用:
{category module=share pid=$parent.id}
<a href="{$t.url}" {if $t.id==$cat.id} class="active"{/if}><span>{$t.name}</span></a>
{/category}
阅读全文
原文链接:https://www.mubanbaba.com/226.html,转载请注明出处。


评论0