打开 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工作流
梦幻向日葵ComfyUI工作流
完整海报生成comfyui工作流
一个孤独的身影在未来主义城市
一位老人安详地坐在云层中钓鱼
一轮月亮悬挂在树上的天空中ComfyUI工作流
一张由表情符号组成的照片ComfyUI工作流
一只黑色章鱼ComfyUI工作流
一桌精致的美食,桌上几杯白葡萄酒
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

利用CSS3代码编写45款按钮效果
利用html5+css3实现滚雪球效果(附代码)
纯CSS饼图效果
iframe开发admin后台
css3动画loading效果
3D彩色卡片
一个包含老黄历、佛历、道历、星宿等数据的日历网站
canvas黑洞漩涡(canvas+js)











