dedecms dedecms remove the VLAN tag character limits

The default dedecms label only in length only 12 characters or less, to remove restrictions:

ALTER TABLE `dede_tagindex` CHANGE `tag` `tag` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';
ALTER TABLE `dede_taglist` CHANGE `tag` `tag` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';

And then to modify the parameters /include/helpers/archive.helper.php source files among file path
to find:

if(isset($tag[12]) ||$tag!=stripslashes($tag))

The tag [12] into tag [255] to.

Case: http://www.sdfymb.com/tags/qingshuiyuanzhumoban.html after page, is to limit the length of tag removed, and then the Chinese characters into pinyin, and statically generated tag page.

Original article published by dsnail finishing, please indicate: a cylindrical template

Guess you like

Origin blog.51cto.com/14201330/2460370