DEDECMS修改文章TAG 給TAG加鏈接 去掉TAG字數限制

字號:


    這篇文章主要介紹了DEDECMS修改文章TAG 給TAG加鏈接 去掉TAG字數限制,需要的朋友可以參考下
    1、給TAG加鏈接:
    PHP Code
    {dede:tag sort='new' getall='0'}
    <a href='[field:link/]'>[field:tag /]</a>
    {/dede:tag}
    就可以調用出本文對應的TAG,并且是帶鏈接的。。。
    2、去掉系統(tǒng)默認TAG標簽的字數限制:
    第一步:修改數據庫中表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])
    這樣就行了!