Home > Article > Backend Development > Detailed explanation of DEDECMS modifying the article to add links to TAG and remove the word limit of TAG
This article mainly introduces DEDECMS to modify the article TAG and add links to TAG to remove the word limit of TAG. Friends who need it can refer to it1. Add links to TAG:
PHP CodeCopy the content to the clipboard
{dede:tag sort='new' getall='0'} <a href='[field:link/]'>[field:tag /]</a> {/dede:tag}
can call up the TAG corresponding to this article, and it has a link. . .
2. Remove the character limit of the system default TAG tag:
Step 1: Modify the tag fields attributes of the tables dede_tagindex and dede_taglist in the database: change varchar(12) to varchar(255) Step 2: Modify the source code , search in include/archives.func.php:
if(isset($tag[12])modified to:
if(isset($tag[255])Search in include/archives.func.php:
if(isset($tag[20])modified to:
if(isset($tag[255])That’s it!
The above is the detailed content of Detailed explanation of DEDECMS modifying the article to add links to TAG and remove the word limit of TAG. For more information, please follow other related articles on the PHP Chinese website!