业务经理

微信扫描以上二维码

028-61286886

技术咨询

自定义模块列表怎么调用分页

迅睿框架 更新 2021-04-15 09:22:32 包鑫忠

自定义模块列表怎么调用分页,我在后台创建了一个新的模块,然后新建了列表页面,list-class.html,怎么调用分页,或者说只能自己写?

方案

  • 迅睿框架创始人 #1 · 2019-07-22 14:30:51
    没看明白
  • 包鑫忠 #2 · 2019-07-22 14:32:35
    满意答案
    就是我想在我创建的模块下面去使用{$pages}调用分页
    image.png
  • 迅睿框架创始人 #3 · 2019-07-22 14:34:47
    任然没看明白,反正前端list页面是自带分页功能的
  • 包鑫忠 #4 · 2019-07-22 14:35:46
    我自己创建了一个课程模块,然后调用分页的时候调用不出来
  • 包鑫忠 #5 · 2019-07-22 14:36:19
    我自己创建了一个课程模块,然后调用分页的时候调用不出来{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">产品名称:</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>
  • 迅睿框架创始人 #6 · 2019-07-22 14:39:15
    {module module=course pid=32 page=1}page=1开启分页缺少,pagesize:一页显示多少条缺少,urlrule:第二页地址怎么样
    少了两个重要参数肯定不会分,手册有写手册有写手册有写手册有写
  • 坤哥 #7 · 2019-07-22 14:40:31

    image.png
  • 包鑫忠 #8 · 2019-07-22 14:41:10
    我试试
  • 包鑫忠 #9 · 2019-07-22 14:41:56

    image.png
    这个不是也可以吗
  • 包鑫忠 #10 · 2019-07-22 14:43:59
    坤哥加了url就可以了,为什么上面那个方式下面不适用呢
  • sk360c #11 · 2019-07-22 14:49:03
    这种地址:index.php?***&c=category&****这个页面下面就可以不带参数,你要提供你的url是多少???{module module=course pid=32 page=1 pagesize=5 urlrule=index.php?******xsxxxxxx}
  • 包鑫忠 #12 · 2021-04-15 09:22:32
    @包鑫忠:.................................................

迅睿系统漏洞

图片格式转化
图片格式转化(2026-10-17)
修复百度编辑器里的内容图片没有转换为webp格式 历史文章列表不显...
站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
图书阅读系统
图书阅读系统(2026-10-14)
全站移动端样式适配 首页分类 Tab 横滑容器,左右渐变滚动提示 ...
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;