Home >CMS Tutorial >DEDECMS >How to call TAG tag on DEDE list page and article page

How to call TAG tag on DEDE list page and article page

藏色散人
藏色散人Original
2019-12-16 10:31:211695browse

How to call TAG tag on DEDE list page and article page

How to call the TAG tag on DEDE list pages and article pages?

This section mainly introduces how to call TAG tags and add your own styles on DEDE list pages and article pages. The sample code is as follows. Friends in need can refer to it

Recommended learning: 梦Weavercms

[field:id function=GetTags(@me)/] Tags can be called out

But without a connection Yes, if you need to connect, please comment line 130 of include\helpers\archive.helper.php file

// $tags .= ($tags=='' ? $row['tag'] : ','.$row['tag']);

Replace with the following statement, of course you can also add your own style

$tags .= "<ahref=&#39;/tags.php?/".urlencode($row[&#39;tag&#39;])."/&#39;>".$row[&#39;tag&#39;]."</a>";

Article page

Tag: {dede:tag row='8' getall='0'}693c5507f01a2d8dbf25c3695d083d07[field:tag /]5db79b134e9f6b82c0b36e0489ee08ed{/ dede:tag}

The above is the detailed content of How to call TAG tag on DEDE list page and article page. 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