您现在的位置是:首页 > 网站建设网站建设

dede首页调用最新全站图片,怎么排除某一目录的图片标签?

江湖快报网2022-12-10 12:07:50【网站建设】人已围观

简介1. 首先说下,织梦默认的标签是无法实现这个功能的
2. 多素材织梦模板为您提供一个实现的方法教程供您参考
3. 打开/include/taglib/arclist.lib.php文件,找这段代码(大概在130

1. 首先说下,织梦默认的标签是无法实现这个功能的
2. 多素材织梦模板为您提供一个实现的方法教程供您参考
3. 打开/include/taglib/arclist.lib.php文件,找这段代码(大概在130行)
查找:
return lib_arclistDone
           (
             $refObj, $ctag, $typeid, $ctag->GetAtt('row'), $ctag->GetAtt('col'), $titlelen, $infolen,
             $ctag->GetAtt('imgwidth'), $ctag->GetAtt('imgheight'), $listtype, $orderby,
             $ctag->GetAtt('keyword'), $innertext, $envs['aid'], $ctag->GetAtt('idlist'), $channelid,
             $ctag->GetAtt('limit'), $flag,$ctag->GetAtt('orderway'), $ctag->GetAtt('subday'), $ctag->GetAtt('noflag'),
             $tagid,$pagesize,$isweight
           );
4、在最后的$isweight后跟上(注意前面的逗号):
,$ctag->GetAtt('notypeid')
5、查找:
function lib_arclistDone(&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlelen=30, $infolen=160,
        $imgwidth=120, $imgheight=90, $listtype='all', $orderby='default', $keyword='',
        $innertext='', $arcid=0, $idlist='', $channelid=0, $limit='', $att='', $order='desc', $subday=0, $noflag='',$tagid='', $pagesize=0, $isweight='N')
6、在最后的$isweight='N'后跟上(duosucai.com提示你注意前面的逗号)

,$notypeid=0
7、查找:
$orwheres[] = ' arc.arcrank > -1 ';
8、在其前面添加:

if(!empty($notypeid)) {
$orwheres[] = and arc.typeid NOT IN (.GetSonIds($notypeid).);
}
9、使用标签:
notypeid='9'这里的9就是你要排除的栏目id号哈。



多素材织梦模板
为您解答
望采纳

Tags:图片   全站   首页

很赞哦! ()

文章评论

    共有条评论来说两句吧...

    用户名:

    验证码:

本站推荐