找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 146|回复: 0

[cms教程] 织梦dedecms用栏目交叉时arclist标签不能调出相关文章

[复制链接]

该用户从未签到

发表于 2015-12-31 09:58:39 | 显示全部楼层 |阅读模式

您需要 登录 才可以下载或查看,没有账号?立即注册

×
打开 include/taglib/arclist.lib.php 文件
找到
if($ctag->GetAtt('cross')=='1')
修改为
if($ctag->GetAtt('cross')!='0')
找到
if($arr['crossid',!='') $selquery = "Select id,topid From `dede_arctype` where id in('{$arr['crossid',}') And id'{$typeid}' And topid'{$typeid}'  ";
修改为
if($arr['crossid',!='') $selquery = "Select id,topid From `dede_arctype` where id in({$arr['crossid',}) And id'{$typeid}' And topid'{$typeid}'  ";

分析:
从数据库可以看出
当栏目为不交叉时cross的值为0
当栏目为自动获取同名栏目时cross的值为1
当栏目为手动指定ID时cross的值为2
显然
if($ctag->GetAtt('cross')=='1')
是错的,在手动指定ID时$CrossID 始终为空
回复

使用道具 举报

网站地图|页面地图|文字地图|Archiver|手机版|小黑屋|找资源 |网站地图

GMT+8, 2024-10-5 17:21

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表