迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費且不限制商業(yè)使用,是免費開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
迅睿tag 分頁只能實現(xiàn)單個類目下的分頁
如果全局(多個欄目)要實現(xiàn)分頁,改如何處理?
只能基于某個模塊,下期版本可以基于全模塊
試試這個
{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}
文檔標題{$t.title}
欄目鏈接{dr_cat_value($t.mid, $t.catid, 'url')}
欄目名稱{dr_cat_value($t.mid, $t.catid, 'name')}
{/modules}
分頁條
{$pages}
只能基于某個模塊,下期版本可以基于全模塊
試試這個
{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}
文檔標題{$t.title}
欄目鏈接{dr_cat_value($t.mid, $t.catid, 'url')}
欄目名稱{dr_cat_value($t.mid, $t.catid, 'name')}
{/modules}
分頁條
{$pages}