联系官方销售客服
1835022288
028-61286886
用了一二级循环,想写个判断
如果顶级栏目是5的时候,不循环下面的二级栏目
{category module=share pid=0}
<div class="column">
<h2><a href="{$t.url}">{$t.name}</a></h2>
<div class="nav_b">
{category module=share pid=$t.id return=t2}
<a href="{$t2.url}" target="_blank">{$t2.name}</a>
{/category}
</div>
</div>
{/category}
{category module=share pid=0}
<div class="column">
<h2><a href="{$t.url}">{$t.name}</a></h2>
<div class="nav_b">
{category module=share pid=$t.id return=t2}
<a href="{$t2.url}" target="_blank">{$t2.name}</a>
{/category}
</div>
</div>
{/category}