打开/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-G
打开/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 channelid='1' notypeid='9'}
不调用栏目ID为9的栏目下的文档
不调用栏目ID为9的栏目下的文档
版权声明:本站部分内容来源互联网,如果文章中所涉及的图片或者文字内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!
织梦狗模板
织梦artlist标签实现不调用某个栏目下文档的办法


最新VIP资源
猜你喜欢
- 织梦dedecms通过dede:sql标签使用SQL语句调用数据库内容 2023-07-29
- 织梦dedecms注册会员列表常用sql分析 2021-04-21
- 织梦dedecms数据库的常用操作方法 2021-06-29
- 织梦DedeCms数据保存到附加表“dede_addonarticle”报错处理办法 2023-08-12
- dedecms修改描述description限制字数长度的方法 2021-04-13
- 织梦dedecms几条重要的安全设置建议 2023-07-29
- dedecms默认的模板目录怎么修改 2021-04-25
- dedecms注册登录功能怎么做 2023-08-12
- dedecms织梦列表页隔行换色换样式的办法 2023-08-22
- dedecms循环列表样式隔行换色实现办法 2023-07-28