创新屋百科网

您现在的位置是:首页 > 站长新闻 > CMS教程 > 正文

CMS教程

DEDECMS修改文章TAG 给TAG加链接 去掉TAG字数限制

king2023-03-03CMS教程217
1、给TAG加链接:

         PHP Code
  1. {dede:tag sort='new' getall='0'}   
  2. <a href='[field:link/]'>[field:tag /]</a>   
  3. {/dede:tag} 
就可以调用出本文对应的TAG,并且是带链接的。。。

2、去掉系统默认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])


发表评论

评论列表

  • 这篇文章还没有收到评论,赶紧来抢沙发吧~