DEDECMS Global Label Tag| Tag calls

Source: Internet
Author: User
Keywords DEDECMS global tag tag call

Tag| Tag calls

Tag Name: Tag
Function Description: Tag call tag
Scope of application: global use
Basic syntax:
{dede:tag sort= ' new ' getall= ' 0 '}
<a href= ' [field:link/] ' >[field:tag/]</a>
{/dede:tag}
Related functions:
File \include\taglib\tag.lib.php Line 4th
Function Lib_tag (& $ctag,& $REFOBJ)
Parameter description:
row= ' 30 ' number of call bars
sort= ' new ' Sort way month,rand,week
Getall= ' 0 ' get type 0 for the current content page tag tag, 1 to get all tag tags
Underlying template fields:
Link,tag
Usages:
This tag is used to display the tag tag in the contents of the system document, and we will find the option to add tag in the system when we add articles or other content:

This part of our content can be called on the relevant page, for example, in the document content page, we can add the following tags in the corresponding section of the \templets\default\article_article.htm:
{dede:tag sort= ' new ' getall= ' 0 '}
<a href= ' [field:link/] ' >[field:tag/]</a>
{/dede:tag}
We view the information in the page section:

If we will tag tags in the home page call, you need to add tag to the index.htm template in the home page tag call, this time need to be getall= ' 1 ', of course, the system backstage [core]-[Bulk maintenance] in the tag tag management This project, you can automatically get the contents of the tag.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.