迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
為什么分頁了,點下一步跳轉到第二頁還是顯示第一頁的內容?
第一頁
第二頁
使用了官方默認分頁樣式
{module module=news page=1 pagesize=5 urlrule=/index.php?c=category&id=13/[page].html} <li> <span class="blogpic imgscale"><a href="/zx/btb/589.html" title="{$t.title} "><img src="static/picture/defaultpic.gif" alt="{$t.title} "></a></span> <h3 class="blogtitle"><a href="/zx/btb/589.html">{$t.title}</a></h3> <p class="blogtext"><a href="/zx/btb/589.html">Roninnetwork(以下簡稱Ronin)的黑客事件已經過去了近兩周,次生災害還沒有結束。區塊鏈上構建的寵物戰斗游戲Axieinfinity遭遇了各種數據的全面下滑。有用戶表示無法從游戲中解押相關資產。 Da... </a></p> <p class="bloginfo"> <span><i class="fa fa-calendar" aria-hidden="true"></i> 2022-04-13</span> <span><i class="fa fa-eye" aria-hidden="true"></i> <script src="{THEME_PATH}okx/static/js/count.js" type='text/javascript' language="javascript"></script> </span> <span class="fr tags"><i class="fa fa-tags" aria-hidden="true"></i> <a href='/tags.php?/%E6%AC%A7%E6%98%93%E4%BA%A4%E6%98%93%E6%89%80/'>11111</a> </span> </p> <a href="/zx/btb/589.html" class="viewmore displayN">閱讀更多</a> </li> {/module}
{module module=news page=1 pagesize=5 urlrule=/index.php?c=category&id=13/[page].html}
這個是錯誤的,欄目頁不能這么寫
------------
欄目頁的模板標簽生成工具:http://www.zbshanke.com/doc/code/lists.html
欄目頁是固定的標簽啊啊
{module catid=$catid order=updatetime page=1 return=rs} // 列表分頁固定寫法不可增加參數 當前行數(從1開始):{$key_rs+1} 當前行數(從0開始):{$key_rs} 標題:{$rs.title} 地址:{$rs.url} 描述:{$rs.description} 截取20字 {dr_strcut($rs.description, 20)} 縮略圖剪切: {dr_thumb($rs.thumb, 200, 200)} 判斷有無縮略圖:{if $rs.thumb}有的{else}沒有{/if} 縮略圖原圖: 判斷有無縮略圖:{if $rs.thumb} {dr_get_file($rs.thumb)} {else}沒有{/if} 時間:{$rs.updatetime} 自定義時間:{dr_date($rs._updatetime, 'Y-m-d')} 所屬欄目;{dr_cat_value($rs.catid, 'name')} 欄目地址:{dr_cat_value($rs.catid, 'url')} =====其他字段調用方式:請點擊下方《 模塊內容在循環中的字段調用方式 》 {/module} 分頁數量:欄目管理,找到對應的欄目,點修改,切換到模板選項,設置分頁顯示數量 分頁字符串:{$pages_rs} 調試排錯診斷信息:{$debug_rs} (開發者模式下才可用)
這個是錯誤的,欄目頁不能這么寫
------------
欄目頁的模板標簽生成工具:http://www.zbshanke.com/doc/code/lists.html
欄目頁是固定的標簽啊啊