用织梦dedecms开发网站,需要一篇文章被多个栏目调用,织梦后台有副栏目这个功能,可是在用arclist调用的时候,副栏目却调用不出这篇文章,所以去简单修改了下/include/tag/arclist.lib.php文件
将295行,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 FIND_IN_SET(\''.GetSonIds($typeid).'\',arc.typeid2)>0)'; else $orwheres[] = $orwheres[] = ' (arc.typeid in (\''.GetSonIds($typeid).'\','.$CrossID.') or FIND_IN_SET('.GetSonIds($typeid).','.$CrossID.',arc.typeid2))';