迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
技術(shù)咨詢
如何調(diào)用6,41,2,3,34,46這幾個共享欄目,并按照這個順序顯示
補充一下,因為欄目已經(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}這個標簽的order根本不起作用
【技佳科技】4樓
補充一下,因為欄目已經(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}這個標簽的order根本不起作用
【技佳科技】4樓