打开 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 始终为空
标签: arclist, cross, ctag, getatt, id
上面是“织梦dedecms用栏目交叉时arclist标签不能调出相关文”的全面内容,想了解更多关于 织梦cms 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_342.html
workflows工作流
一个孤独的身影在未来主义城市
文生图工作流:一幅海底睡莲,碧海蓝天comfyui工
一个白色的咖啡杯,蒸汽从杯子里冒出来
一辆老式灵车在黑暗中从雾中出现ComfyUI工作流
一只沮丧的卡通小丑鱼ComfyUI工作流
雪地里一只可爱的小老虎
奋斗的小黄人ComfyUI工作流
葡萄庄园白葡萄酒ComfyUI工作流
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!