织梦 arclist调用副栏目内容解决办法

1 打开include/taglib/arclist.lib.php,找到296行:

if($CrossID=='') $orwheres[] = ' arc.typeid IN ('.GetSonIds($typeid).')';

else $orwheres[] = ' arc.typeid IN ('.GetSonIds($typeid).','.$CrossID.')';

替换成以下即可:

if($CrossID=='')

$orwheres[] = ' (arc.typeid IN ('.GetSonIds($typeid).') OR arc.typeid2 IN ('.GetSonIds($typeid).') or FIND_IN_SET('.$typeid .', arc.typeid2)>0)';

else

$orwheres[] = ' (arc.typeid IN ('.GetSonIds($typeid).','.$CrossID.') OR arc.typeid2 IN ('.GetSonIds($typeid).','.$CrossID.') or FIND_IN_SET('.$typeid .',arc.typeid2)>0) ';

2 然后再更新一下系统缓存即可。

posted @ 2019-05-31 10:58  study_php_java_C++  阅读(352)  评论(0编辑  收藏  举报