dedecms织梦artlist标签实现notypeid属性

2025-08-04 0 6
打开/include/taglib/arclist.lib.php文件:
找到
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
     );
在最后的;前面加上
,$ctag->GetAtt(‘notypeid’)
再找到
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’)
在他后面加上
,$notypeid=0
再找到
$orwheres[] = ‘ arc.arcrank > -1 ‘;
在它上面加上
if(!empty($notypeid))
{
    $orwheres[] = ” and arc.typeid NOT IN (“.GetSonIds($notypeid).”)”;
}
模板调用:
{dede:arclist row=6 orderby=pubdate type=’image.’ imgwidth=’108′ imgheight=’150′ channelid=’1′ notypeid=’9′}
收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

版权声明:所有的源码、软件和资料,不得使用于非法商业用途,不得违反国家法律,一切关于该资源商业行为与本站无关。

免费cms模板 dedecms教程 dedecms织梦artlist标签实现notypeid属性 https://www.mianfeicms.com/1150.html

相关文章

发表评论
暂无评论