聯系官方銷售客服
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 標簽是按后臺的欄目列表順序來循環的
回復@迅睿框架聯合創始人 不能按后臺指定的循序來排列嗎
數值只能從小到大排序
自行設定顯示順序
每個category標簽里加個order試試
回復@likelonely 你這個不行的 你可以去試試 導航都不顯示了
{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}
回復@likelonely 產品和新聞的二級分類都是按照排序升序排的,沒有按照ID排
回復@likelonely 按從大到小 不行的