Home >Backend Development >PHP Tutorial >Detailed explanation of DEDECMS modifying the article to add links to TAG and remove the word limit of TAG

Detailed explanation of DEDECMS modifying the article to add links to TAG and remove the word limit of TAG

黄舟
黄舟Original
2017-03-31 10:15:261680browse

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

  1. {dede:tag sort='new' getall='0'}   
    <a href=&#39;[field:link/]&#39;>[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!


dedecms template download address: m.sbmmt.com/xiazai/code/dedecms

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn