织梦默认的arclist标签支持typeid的调用,也就是给文章列表指定来源栏目,有时候栏目过多,一个一个写就很复杂,所以用排除的方法写更方便,以此引入notypeid属性。 主要修改文件是/include/taglib/下的arclist.lib.php文件,首先搜索: return lib_arclistDone 在函数末尾加上:,$ctag->GetAtt('notypeid'),原来的代码变成如下的样子: 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,同样在这个函数的后面加上一句代码:,$notypeid=0,修改后的函数变成下面的样子: function lib_arclistDone(&$refObj, &$ctag, $typeid=0] $row=10] $col=1, $titlelen=30] $infolen=160] $imgwidth=120] $imgheight=90] ...
内容已隐藏,请关注公众号输入验证码查看
本帖支持关注公众号查看
【无套路 无套路 无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】
|