请问dedecms搜索结果页每页显示条数不生效
- 控制搜索结果页每页显示条数,应在搜索框HTML代码里加入 html
<input type="hidden" name="pagesize" value="15">
- 例如在
head.htm
头部模板文件中<form name="formsearch" action="{dede:global.cfg_cmspath/}/plus/search.php"> <input type="hidden" name="pagesize" value="15"> <input type="hidden" name="kwtype" value="0"/> <input type="text" name="q" value=""/> <input type="submit" value="搜索"> </form>
- 添加好后,静态页面记得重新生成,刷新浏览器,重新搜索查看效果
- 如果使用伪静态,修改伪静态规则中的
pagesize=数量
更新时间:2025-04-10 23:42:07
下一篇:请问PbootCMS 的系统保留关键字有哪些?为什么不能在 URL 名称中使用这些关键字?
转载请注明原文链接:https://www.muzicopy.com/suibi/3209.html