迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費(fèi)且不限制商業(yè)使用,是免費(fèi)開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
如何調(diào)用6,41,2,3,34,46這幾個共享欄目,并按照這個順序顯示
補(bǔ)充一下,因為欄目已經(jīng)設(shè)置排序,我的做法是這樣的:
{list action=category module=share id=6}
{list action=category module=share id=41}
{list action=category module=share id=2,3,34,46 order=id_asc}
問題是,第三個list,并不能按照預(yù)想的2,3,34,46這個順序排序
簡單
<?php $cats = array(6,41,2,3,34,46);?> {loop $cats $i} {dr_share_cat_value($i, 'name')} {/loop}
可行么
因為list循環(huán)是按照后臺欄目的順序輸出的,他不會按照你的預(yù)選
【大搜網(wǎng)絡(luò)】1樓
{list action=category module=share id=2,3,34,46 order=id_asc}這個標(biāo)簽的order根本不起作用
【技佳科技】4樓
補(bǔ)充一下,因為欄目已經(jīng)設(shè)置排序,我的做法是這樣的:
{list action=category module=share id=6}
{list action=category module=share id=41}
{list action=category module=share id=2,3,34,46 order=id_asc}
問題是,第三個list,并不能按照預(yù)想的2,3,34,46這個順序排序
簡單
可行么
因為list循環(huán)是按照后臺欄目的順序輸出的,他不會按照你的預(yù)選
【大搜網(wǎng)絡(luò)】1樓
{list action=category module=share id=2,3,34,46 order=id_asc}這個標(biāo)簽的order根本不起作用
【技佳科技】4樓