DEDECMS修改文章TAG 給TAG加鏈接 去掉TAG字?jǐn)?shù)限制

字號(hào):


    這篇文章主要介紹了DEDECMS修改文章TAG 給TAG加鏈接 去掉TAG字?jǐn)?shù)限制,需要的朋友可以參考下
    1、給TAG加鏈接:
    PHP Code
    {dede:tag sort='new' getall='0'}
    <a href='[field:link/]'>[field:tag /]</a>
    {/dede:tag}
    就可以調(diào)用出本文對(duì)應(yīng)的TAG,并且是帶鏈接的。。。
    2、去掉系統(tǒng)默認(rèn)TAG標(biāo)簽的字?jǐn)?shù)限制:
    第一步:修改數(shù)據(jù)庫中表dede_tagindex 和dede_taglist的tag字段屬性:varchar(12)修改為varchar(255)
    第二步:修改源碼,在include/archives.func.php中查找:if(isset($tag[12])
    修改為:if(isset($tag[255])
    在include/archives.func.php中查找:if(isset($tag[20])
    修改為:if(isset($tag[255])
    這樣就行了!