最近一段时间一直打算修改英国移民网的首页,对首页的栏目内容也打算进行一系列的调用设置,可是在调用的时候出现了一些问题:调用不了英国移民网下的“移民快讯”这一副栏目下的内容!于是只能上网求助,在广大的网友帮助下,终于解决了这一麻烦的问题,现在我将解决方法贴出来,希望方便大家!
修改:include/taglib/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 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.”,%’)”;
前台代码:
{dede:arclist row=’8′ addfields=’rizu’ titlelen=’56′ orderby=’pubdate’ typeid=’30′ idlist=” channelid=’17′}
<li><span>¥[field:rizu/]/日</span><span>移民快讯:<a href=”[field:typeurl/]“>[field:typename/]</a></span><a href=”[field:arcurl/]“>[field:title/]</a></li>
{/dede:arclist}