迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費且不限制商業(yè)使用,是免費開源的產(chǎn)品,以萬端互聯(lián)為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
自定義模塊列表怎么調(diào)用分頁,我在后臺創(chuàng)建了一個新的模塊,然后新建了列表頁面,list-class.html,怎么調(diào)用分頁,或者說只能自己寫?
沒看明白
就是我想在我創(chuàng)建的模塊下面去使用{$pages}調(diào)用分頁
任然沒看明白,
反正前端list頁面是自帶分頁功能的
我自己創(chuàng)建了一個課程模塊,然后調(diào)用分頁的時候調(diào)用不出來
{module module=course pid=32 page=1}
page=1開啟分頁
缺少,pagesize:一頁顯示多少條
缺少,urlrule:第二頁地址怎么樣
少了兩個重要參數(shù)肯定不會分,手冊有寫手冊有寫手冊有寫手冊有寫
回復@坤哥加了url就可以了,為什么上面那個方式下面不適用呢
我試試
這個不是也可以嗎
這種地址:index.php?***&c=category&****
這個頁面下面就可以不帶參數(shù),你要提供你的url是多少???
{module module=course pid=32 page=1 pagesize=5 urlrule=index.php?******xsxxxxxx}
沒看明白
就是我想在我創(chuàng)建的模塊下面去使用{$pages}調(diào)用分頁
任然沒看明白,
反正前端list頁面是自帶分頁功能的
我自己創(chuàng)建了一個課程模塊,然后調(diào)用分頁的時候調(diào)用不出來
我自己創(chuàng)建了一個課程模塊,然后調(diào)用分頁的時候調(diào)用不出來
{module module=course pid=32 page=1}<div id="xn_c_products_12_Data_ctl00_xn_c_products_12_jtstyle" class="xn_c_products_12_xhbox1">
<div class="xn_c_products_12_lftbox">
<a title='{$t.title}' alt='{$t.keywords}' target="_blank" href='{$t.url}'>
<img data-original='{dr_thumb($t.thumb)}' alt='{$t.keywords}' title='{$t.title}' />
</a>
</div>
<div class="xn_c_products_12_ritbox">
<div class="xn_c_products_12_name">
<span class="xn_c_products_12_name1">
<span name="_products_12_name1">產(chǎn)品名稱:</span>
</span>
<span class="xn_c_products_12_name2">
<a title='{$t.title}' alt='{$t.keywords}' target="_blank" href='{$t.url}'>
{$t.title}
</a>
</span>
</div>
<div class="xn_c_products_12_xinhao">
<span class="xn_c_products_12_xinhao1">
<span name="_products_12_xinhao1">型號:</span>
</span>
<span class="xn_c_products_12_xinhao2">
<a title='{$t.title}' alt='{$t.keywords}' target="_blank" href='{$t.url}'>
</a>
</span>
</div>
<div class="xn_c_products_12_time">
<span class="xn_c_products_12_time1">
<span name="_products_12_time1">時間:</span>
</span>
<span class="xn_c_products_12_time2">
<span id='xn_c_products_12_Data_ctl00_xn_c_products_12_time2Text'>{dr_date($t._updatetime,'Y')}</span>
</span>
<span class="xn_c_products_12_time3">-</span>
<span class="xn_c_products_12_time4">
<span id='xn_c_products_12_Data_ctl00_xn_c_products_12_time4Text'>{dr_date($t._updatetime,'m')}</span>
</span>
<span class="xn_c_products_12_time5">-</span>
<span class="xn_c_products_12_time6">
<span id='xn_c_products_12_Data_ctl00_xn_c_products_12_time6Text'>{dr_date($t._updatetime,'d')}</span>
</span>
</div>
<div class="xn_c_products_12_coent" ej="edit_span">
<span id='xn_c_products_12_Data_ctl00_xn_c_products_12_coentText'>{$t.description}</span>
</div>
<div class="xn_c_products_12_order">
<a title='{$t.title}' alt='{$t.keywords}' target="_blank" href='{$t.url}'>
<span name="_products_12_order">在線訂購</span>
</a>
</div>
<div class="xn_c_products_12_more">
<a title='{$t.title}' alt='{$t.keywords}' target="_blank" href='{$t.url}'>
<span name="_products_12_more">了解更多</span>
</a>
</div>
</div>
</div>
{/module}
</div>
</div>
<div id="fy" class="fy">
{$pages}
</div>
{module module=course pid=32 page=1}
page=1開啟分頁
缺少,pagesize:一頁顯示多少條
缺少,urlrule:第二頁地址怎么樣
少了兩個重要參數(shù)肯定不會分,手冊有寫手冊有寫手冊有寫手冊有寫
回復@坤哥加了url就可以了,為什么上面那個方式下面不適用呢
我試試
這個不是也可以嗎
這種地址:index.php?***&c=category&****
這個頁面下面就可以不帶參數(shù),你要提供你的url是多少???
{module module=course pid=32 page=1 pagesize=5 urlrule=index.php?******xsxxxxxx}