业务经理

微信扫描以上二维码

028-61286886

技术咨询

列表页分页点下一页出来的内容,怎么和第一页是一样

迅睿框架 更新 2022-07-30 22:54:33 635783796


为什么分页了,点下一步跳转到第二页还是显示第一页的内容?


第一页

image



第二页

image




使用了官方默认分页样式

image

方案

  • 635783796 #1 · 2022-07-30 21:54:50
    {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}
  • 迅睿框架联合创始人 #2 · 2022-07-30 22:01:16
    {module module=news page=1 pagesize=5 urlrule=/index.php?c=category&id=13/[page].html}
    这个是错误的,栏目页不能这么写------------栏目页的模板标签生成工具:https://www.xunruicms.com/doc/code/lists.html
  • 9龙城 #3 · 2022-07-30 22:05:23
    满意答案
    栏目页是固定的标签啊啊
    {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} (开发者模式下才可用)
  • 635783796 #4 · 2022-07-30 22:54:33
    @9龙城:非常感谢你的回答!

迅睿系统漏洞

站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
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万篇文章,过多会导致服务器扛不住;
CMS内容同步复制
CMS内容同步复制(2026-10-10)
增加时间是否更新的开关