Dedecms織夢(mèng)模板下載標(biāo)簽artlist如何調(diào)用副欄目的教程
時(shí)間: 2018-11-20 09:33
閱讀: 次
作者:素材無(wú)憂網(wǎng)
解決在列表頁(yè)調(diào)用副欄目,但列表頁(yè)文章不顯示方法:
打開 /include/taglib/arclist.lib.php,原代碼如下:
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 CONCAT( ',', arc.typeid2, ',' ) LIKE '%,".$typeid.",%' )";
else
$orwheres[] = " (arc.typeid in (".GetSonIds($typeid).",".$CrossID.") or arc.typeid2 in (".GetSonIds($typeid).",".$CrossID.") or CONCAT( ',', arc.typeid2, ',' ) LIKE '%,".$typeid.",%')";
標(biāo)簽: