迅睿CMS框架是一款PHP8高性能·簡單易用的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
?加條件就不能分頁了?????去掉這個(gè)條件就可以顯示分頁???能告訴我怎么寫能在有條件的基礎(chǔ)上實(shí)現(xiàn)分頁么
{list action=module module=news catid=$catid page=1 pagesize=3? urlrule=index.php?c=category&id=$catid&page=[page]}
?
這個(gè)標(biāo)簽是自帶分頁功能的,你是在哪個(gè)url下面使用哪個(gè)模板里面寫的
{list action=module module=news page=1 pagesize=3 urlrule=index.php?c=category&id=$catid&page=[page]}這樣子就有分頁 不過全部數(shù)據(jù)都查出來了
{list action=module module=news catid=$catid page=1 pagesize=3 urlrule=index.php?c=category&id=$catid&page=[page]}加了條件以后就是正確的數(shù)據(jù) 但是沒有分頁
我告訴你了,你是在哪個(gè)url下面使用哪個(gè)模板里面寫的
catid參數(shù)受頁面會(huì)有影響
比如在首頁index.html下就不能使用,在category.html就不能分頁,在list.html才可以使用,所以我問你在哪個(gè)頁面
http://www.xxx.com/index.php?c=category&id=2 url是這樣的
這個(gè)url已經(jīng)自帶分頁了,不需要那么多參數(shù)
{list action=module module=news catid=$catid page=1}
分頁數(shù)量在后臺(tái)的欄目2設(shè)置
/index.php?c=category&id=
這種地址用默認(rèn)模板的標(biāo)簽就可以了
{module catid=$catid page=1}
這個(gè)標(biāo)簽是自帶分頁功能的,你是在哪個(gè)url下面使用哪個(gè)模板里面寫的
{list action=module module=news page=1 pagesize=3 urlrule=index.php?c=category&id=$catid&page=[page]}這樣子就有分頁 不過全部數(shù)據(jù)都查出來了
{list action=module module=news catid=$catid page=1 pagesize=3 urlrule=index.php?c=category&id=$catid&page=[page]}加了條件以后就是正確的數(shù)據(jù) 但是沒有分頁
我告訴你了,你是在哪個(gè)url下面使用哪個(gè)模板里面寫的
catid參數(shù)受頁面會(huì)有影響
比如在首頁index.html下就不能使用,在category.html就不能分頁,在list.html才可以使用,所以我問你在哪個(gè)頁面
http://www.xxx.com/index.php?c=category&id=2 url是這樣的
這個(gè)url已經(jīng)自帶分頁了,不需要那么多參數(shù)
{list action=module module=news catid=$catid page=1}
分頁數(shù)量在后臺(tái)的欄目2設(shè)置
/index.php?c=category&id=
這種地址用默認(rèn)模板的標(biāo)簽就可以了
{module catid=$catid page=1}