联系官方销售客服
1835022288
028-61286886
三级导航 现在不能做排序了吗 ?
<!--第一层:调用pid=0表示顶级--> {category module=share pid=0 return=c1} <li class="{if $catid && dr_in_array($catid, $c1.catids)} nav-current{/if}"><a href="{$c1.url}"><em>{$c1.name}</em></a> {if $c1.child} <ul> <!--第二层:调用第二级共享栏目--> {category module=share pid=$c1.id return=c2} <li> <a href="{$c2.url}"><em>{$c2.name}</em></a> {if $c2.child} <ul> <!--第三层:调用第三级共享栏目数据--> {category module=share pid=$c2.id return=c3} <li><a href="{$c3.url}"><em>{$c3.name}</em></a></li> {/category} </ul> {/if} </li> {/category} </ul> {/if} </li> {/category}
自行设定显示顺序
{category module=share pid=0 return=c1} {$c1.displayorder}.{$c1.name}<br> {if $c1.child} {category module=share pid=$c1.id order=displayorder_asc return=c2} {$c2.displayorder}.{$c2.name}<br> {category module=share pid=$c2.id order=displayorder_asc return=c3} {$c3.displayorder}.{$c3.name}<br> {/category} {/category} {/if} {/category}