用了一二级循环,想写个判断
如果顶级栏目是5的时候,不循环下面的二级栏目
{category module=share pid=0}
{category module=share pid=$t.id return=t2}
{$t2.name}
{/category}
{/category}

{category module=share pid=0}
{category module=share pid=$t.id return=t2}
{$t2.name}
{/category}
{/category}