迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計(jì)理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
技術(shù)咨詢
迅睿tag 分頁只能實(shí)現(xiàn)單個類目下的分頁
如果全局(多個欄目)要實(shí)現(xiàn)分頁,改如何處理?
只能基于某個模塊,下期版本可以基于全模塊
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
試試這個
{php $module = [];}
{cache name=module-content return=m}
{php $module[] = $m.dirname;}
{/cache}
{php $modules = implode(',', $module);}
{modules module=$modules field=title,url,thumb,description,keywords,updatetime LIKE_keywords=$tag.tags order=updatetime page=1 pagesize=1 urlrule=$urlrule}
文檔鏈接{$t.url}
文檔標(biāo)題{$t.title}
欄目鏈接{dr_cat_value($t.mid, $t.catid, 'url')}
欄目名稱{dr_cat_value($t.mid, $t.catid, 'name')}
{/modules}
分頁條
{$pages}
只能基于某個模塊,下期版本可以基于全模塊
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
試試這個
{php $module = [];}
{cache name=module-content return=m}
{php $module[] = $m.dirname;}
{/cache}
{php $modules = implode(',', $module);}
{modules module=$modules field=title,url,thumb,description,keywords,updatetime LIKE_keywords=$tag.tags order=updatetime page=1 pagesize=1 urlrule=$urlrule}
文檔鏈接{$t.url}
文檔標(biāo)題{$t.title}
欄目鏈接{dr_cat_value($t.mid, $t.catid, 'url')}
欄目名稱{dr_cat_value($t.mid, $t.catid, 'name')}
{/modules}
分頁條
{$pages}