怎么让二级栏目只显示最多4个二级栏目 迅睿框架 更新 2020-10-14 20:34:15 龙媒 两级循环显示栏目,怎么让二级栏目只显示最多4个二级栏目? {category module=share pid=0 return=c1} 我是父栏目:{$c1.name}<br> {category module=share pid=$c1.id return=c2} 我是{$c1.name}的子栏目:{$c2.name}<br> {/category} {/category}
这里2级栏目太多了。想限制只显示4个。
{category module=share pid=0 return=c1} 我是父栏目:{$c1.name}<br> {category module=share pid=$c1.id num=4 return=c2} 我是{$c1.name}的子栏目:{$c2.name}<br> {/category} {/category}