查找 dedecmsROOT/include/taglib/arclist.lib.php 文件,大概在第212行代码处。
- if($CrossID=='') $orwheres[] = ' arc.typeid in ('.GetSonIds($typeid).')';
- else $orwheres[] = ' arc.typeid in ('.GetSonIds($typeid).','.$CrossID.')';
替换为:
- if($CrossID=='')
- $orwheres[] = ' typeid in ('.GetSonIds($typeid).') or typeid2 in ('.GetSonIds($typeid).')';
- else
- $orwheres[] = ' typeid in ('.GetSonIds($typeid).','.$CrossID.') or typeid2 in ('.GetSonIds($typeid).','.$CrossID.')';
- 示例:{dede:arclist typeid=’2,3,4′}….{/dede:arclist}