织梦dedecms标签调用栏目seotitle

网络整理 - 07-21

大家可能会用到栏目信息表arctype里的其他字段,比如dedecms5.7标签调用栏目seotitle

就是{dede:channel type='son,top,self'}[field:seotitle/]{/dede:channel}这样的调用方法:

打开/include/taglib文件夹,第48行至64行中有:

if($type=='top') { $sql = "Select id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath From `80php_arctype` where reid=0 And ishidden<>1 order by sortrank asc limit 0, $line "; } else if($type=='son') { if($typeid==0) return ''; $sql = "Select id,typename,seotitle,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath From `80php_arctype` where reid='$typeid' And ishidden<>1 order by sortrank asc limit 0, $line "; } else if($type=='self') { if($reid==0) return ''; $sql = "Select id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath From `80php_arctype` where reid='$reid' And ishidden<>1 order by sortrank asc limit 0, $line "; }

在sql语句里补充:Select id,typename,seotitle,.......就可以调用