打开 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 始终为空
织梦教程网络上有很多,但没有一个像自由织梦(www.freedede.cn)这样教程比较齐全的,现在好了,学习开发使用织梦dedecms系
统不用东奔西跑了,直接来自由织梦就好了,提供织梦cms详细的使用教程和织梦建站教程,包括dedecsm的安装、模板开发教程、安
全配置等,DedeCMS从入门到精通建站就是如此轻松。 |
|