织梦dedecms分类信息模型上一页下一页失效办法
2024-08-24 09:57:24
修改文件/include/arc.archives.class
将一下代码
$next = (is_array($nextR) ? " where arc.id={$nextR['id']} " : ' where 1>2 ');
$pre = (is_array($preR) ? " where arc.id={$preR['id']} " : ' where 1>2 ');
$query = "Select arc.id,arc.title,arc.shorttitle,arc.typeid,arc.ismake,arc.senddate,arc.arcrank,arc.money,arc.filename,arc.litpic, t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepath
from `#@__archives` arc left join #@__arctype t on arc.typeid=t.id ";
修改为
if($this->ChannelUnit->ChannelInfos['issystem']!=-1){
$next = (is_array($nextR) ? " where arc.id={$nextR['id']} " : ' where 1>2 ');
$pre = (is_array($preR) ? " where arc.id={$preR['id']} " : ' where 1>2 ');
$query = "Select arc.id,arc.title,arc.shorttitle,arc.typeid,arc.ismake,arc.senddate,arc.arcrank,arc.money,arc.filename,arc.litpic,
t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepath
from `#@__archives` arc left join #@__arctype t on arc.typeid=t.id ";
}else{
$next = (is_array($nextR) ? " where arc.aid={$nextR['id']} " : ' where 1>2 ');
$pre = (is_array($preR) ? " where arc.aid={$preR['id']} " : ' where 1>2 ');
$query = "Select arc.aid,arc.title,arc.typeid,arc.senddate,arc.arcrank,arc.litpic, t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepath
from `".$this->ChannelUnit->ChannelInfos['addtable']."` arc left join #@__arctype t on arc.typeid=t.id ";
}
最新文章
- mongodb-基础-update-remove
- easyUI-增删改查
- zju(3)内核编译与运行
- CRM Xrm.Page 的对象层次结构
- 剑指Offer:面试题11——数值的整数次方(java实现)
- asp.net web.config 经典模式和集成模式相关配置
- 使用另一种方式实现js中Function的调用(call/apply/bind)
- awk与cut在以空格为分割域时的区别
- poco异步等待ActiveResult
- angularJS中XHR与promise
- Largest Rectangular Area in a Histogram
- 项目管理工具 Redmine 安装试用手记
- Effective C++ 读书笔记(13-32)
- mysl 常用函数 union all if ifnull exists case when
- WSGI协议以及对服务器的影响
- Nest.js 添加中间件
- css学习_css书写规范
- MVC 翻頁的那些坑
- 关于 luv_letters
- PAT-GPLT L1-039 - 古风排版 - [字符串输入输出]