DedeBIZ修改tag字数限制的方法:DedeBIZ的TAGS默认字数较少,只能写12个字符,多出的字符就会自动截断,或者直接去除,经常给我们带来一些麻烦,下面介绍如何修改DedeBIZ TAGS的字数限制。
第一步:进入到数据库中,分别找到xx_tagindex 和xx_taglist这两个数据库中的表,修改表xx_tagindex 和xx_taglist的tag字段属性:varchar(12)修改为varchar(255),
ALTER TABLE dede_tagindex modify column tag char(255) not null;
第二步:修改源码,在/system/helpers/archive.helper.php中查找:if(isset($tag[12])
修改为:if(isset($tag[255])
第三步:在/system/helpers/archive.helper.php中查找:if(isset($tag[20])
修改为:if(isset($tag[255])