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