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

黄舟
Release: 2023-03-07 08:24:02
Original
1623 people have browsed it

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}
    Copy after login

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])
Copy after login

modified to:


if(isset($tag[255])
Copy after login
Copy after login

Search in include/archives.func.php:

if(isset($tag[20])
Copy after login

modified to:


if(isset($tag[255])
Copy after login
Copy after login
That’s it!


dedecms template download address: www.php.cn/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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!