DEDE修改文章TAG,给TAG加链接,去掉TAG字数限制
{dede:tag sort='new' getall='0'}
[field:tag /]
{/dede:tag}
dedecms5.7sp1评论添加字段的解决方法
1、给系统默认的TAG标签加上链接:
{dede:tag sort='new' getall='0'}
[field:tag /]
{/dede:tag}
就可以调用出本文对应的TAG,并且是带链接的。。。
2、去掉系统默认TAG标签的字数限制:
第一步:修改数据库中表dede_tagindex 和dede_taglist的tag字段属性:varchar(12)修改为varchar(255)
dedecms第二步:修改源码,在include/archives.func.php中查找:if(isset($tag[12])
修改为:if(isset($tag[255])
在include/archives.func.php中查找:if(isset($tag[20])
修改为:if(isset($tag[255])
dedecms5.7sp1评论添加字段的解决方法