首页 > CMS > 织梦DEDE > 正文

Dedecms织梦模板标签artlist如何调用副栏目的教程

2024-07-12 08:38:47
字体:
来源:转载
供稿:网友
解决在列表页调用副栏目,但列表页文章不显示方法:
打开 /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.",%')";
 
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表