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

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

[上一篇--下一篇]只调用本栏目的修改方法(本人测试没有问题),
我的版本是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

查看更多 DedeCms教程  织梦模板  织梦DedeCms视频教程  织梦dedecms专题

来源:DEDECMS论坛//所属分类:DedeCms教程/更新时间:2008-03-07
相关DedeCms教程