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