This article mainly introduces the DEDECMS modification article TAG to add link to TAG to remove the TAG word limit, for more information about how to modify tags in DEDECMS, see the next article. For more information about how to add links to tags, see DEDECMS.
1. add a link to the TAG:
Copy content from PHP Code to clipboard
{Dede: tag sort = 'new' getall = '0'} [field: tag/] {/dede: tag}
You can call the TAG corresponding to this article and it is linked...
2. remove the limit on the number of words of the default TAG:
Step 1: modify the tag field attributes of the dede_tagindex and dede_taglist tables in the database: varchar (12) to varchar (255)
Step 2: modify the source code and search for it in include/archives. func. php:
If (isset ($ tag [12])
To:
If (isset ($ tag [255])
Find the following in include/archives. func. php:
If (isset ($ tag [20])
To:
If (isset ($ tag [255])
That's all!
Dedecms Template: www.php1.cn/xiazai/code/dedecms
The above is the detailed description of DEDECMS's article on modifying tags and removing TAG word limit. For more information, see other related articles in the first PHP community!