打开 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 始终为空
上面是“织梦dedecms用栏目交叉时arclist标签不能调出相关文”的全面内容,想了解更多关于 织梦cms 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_342.html
workflows工作流
一个20岁丰满的女孩ComfyUI工作流
一座千年九尾白狐玉雕ComfyUI工作流
一只黑色章鱼ComfyUI工作流
树上一个快乐的猕猴桃ComfyUI工作流
一个闪闪发光的金属球ComfyUI工作流
令人着迷的一只老虎ComfyUI工作流
一位身穿金色铠甲的美丽女子守卫在寺庙外
一个十几岁的美国女孩穿着黄色连帽衫在黑暗和空虚的背景下闲逛
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

会议人员60s签到倒计时插件
用ascii字符画图像
用canvas实现画板涂鸦效果
barcode条形码/qrcode二维码兼容所有浏览器(含ie6/ie7/ie8)
一起去看流星雨(代码)
canvas经线动画走到效果
iframe开发admin后台
日历设置每个月颜色都不一样










