首页 > CMS > 织梦DEDE > 正文

[上一篇--下一篇]只调用本栏目的修改方法_DedeCms教程

2024-08-30 19:09:41
字体:
来源:转载
供稿:网友

[上一篇--下一篇]只调用本栏目的修改方法(本人测试没有问题),
我的版本是Powered by DEDEcms V3.1 LIT
具体方法是修改:include/inc_archives_view.php
找: $next = " dede_archives.ID>'$aid' order by dede_archives.ID asc ";
$pre = " dede_archives.ID<'$aid' order by dede_archives.ID desc ";
替换成: $row = $this->dsql->GetOne("select typeid from dede_archives where ID='$aid'");
$listid=$row[typeid];
$next = " dede_archives.ID>'$aid' and dede_archives.typeid='$listid'order by dede_archives.ID asc ";
$pre = " dede_archives.ID<'$aid' and dede_archives.typeid='$listid'order by dede_archives.ID desc ";

官方原帖:http://bbs.dedecms.com/read.php?tid=9698&fpage=3

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表