只要在include\taglib\channel.lib.php   
 
找到下面黑色代码,加入下面红色代码 description,即可
 
位置在78行
 
 if($type=='top')
    {
        $sql = "SELECT id,typename,description,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
          From `dede_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,description,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
          From `dede_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,description,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
            FROM `dede_arctype` WHERE reid='$reid' And ishidden<>1 order by sortrank asc limit 0, $line ";
    }

然后即可调用:
例如:
{dede:channel type='son' typeid='21'}
<p>[field:description/]</p>
{/dede:channel}

THE END

本站部分文章搜集整理于互联网或者网友提供,如有侵权请联系站长

如若转载,请注明出处:https://htmlbk.com/dedecms/487.html

温馨提示:该文档最后一次修改时间为2020-04-20 17:48:34,请注意相关的内容是否还可用!

TAG标签:DedeCMS教程