求助大佬
我想循环指定栏目(id为95)下的子栏目,
给当前对应的栏目添加栏目添加类名
但是我第一个就循环不出来,不知道哪里出了错
{category module=share pid=95 return=c1}
{if $c1.child}
{category module=share pid=$c1.id return=c2}
<a href="#" class="item on">{$c2.name}</a>
{/category}
{/if}
{/category}
{category module=share pid=95 return=c1} {if $c1.child} {category module=share pid=$c1.id return=c2} <a target="_blank" href="#" class="item on">{$c2.name}</a> {/category} {/if} {/category}不需要写这句话了{if $c1.child}{category module=share pid=95 return=c1} {category module=share pid=$c1.id return=c2} <a href="#" class="item on">{$c2.name}</a> {/category} {/category}还是不生效呀,大大~{category module=share pid=95 return=c2} <a target="_blank" href="#" class="item on">{$c2.name}</a> {/category}