迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
技術(shù)咨詢
自定義模塊列表怎么調(diào)用分頁,我在后臺創(chuàng)建了一個新的模塊,然后新建了列表頁面,list-class.html,怎么調(diào)用分頁,或者說只能自己寫?
沒看明白
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
就是我想在我創(chuàng)建的模塊下面去使用{$pages}調(diào)用分頁
任然沒看明白,
反正前端list頁面是自帶分頁功能的
我自己創(chuàng)建了一個課程模塊,然后調(diào)用分頁的時候調(diào)用不出來
{module module=course pid=32 page=1}
page=1開啟分頁
缺少,pagesize:一頁顯示多少條
缺少,urlrule:第二頁地址怎么樣
少了兩個重要參數(shù)肯定不會分,手冊有寫手冊有寫手冊有寫手冊有寫
回復(fù)@坤哥加了url就可以了,為什么上面那個方式下面不適用呢
我試試
這個不是也可以嗎
這種地址:index.php?***&c=category&****
這個頁面下面就可以不帶參數(shù),你要提供你的url是多少???
{module module=course pid=32 page=1 pagesize=5 urlrule=index.php?******xsxxxxxx}
沒看明白
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
就是我想在我創(chuàng)建的模塊下面去使用{$pages}調(diào)用分頁
任然沒看明白,
反正前端list頁面是自帶分頁功能的
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
我自己創(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ù)肯定不會分,手冊有寫手冊有寫手冊有寫手冊有寫
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@坤哥加了url就可以了,為什么上面那個方式下面不適用呢
我試試
這個不是也可以嗎
這種地址:index.php?***&c=category&****
這個頁面下面就可以不帶參數(shù),你要提供你的url是多少???
{module module=course pid=32 page=1 pagesize=5 urlrule=index.php?******xsxxxxxx}