Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use TagList and TagPage tags

Shulou Source: shulou.com Published: 2022-06-02 01:27:16 10月04日 Update

This article mainly explains "how to use TagList and TagPage tags". The explanation content in the article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian slowly and deeply to study and learn "how to use TagList and TagPage tags" together!

Role: Get Tag list or pagination.

implementation class

com.jspxcms.core.web.directive.TagListDirective

com.jspxcms.core.web.directive.TagPageDirective

parameters

siteId: Site ID. Multiple are separated by commas, such as '1,2,5'. Default is the current site, if you want to get all site data, you can pass the empty string ''.

references: Number of references greater than this value (how many articles use this TAG).

node: Node code. Multiple numbers are separated by commas, such as 'foo, bar'.

nodeId: Node ID. Multiple are separated by commas, such as '1,2,5'.

example

Get a list of all tags in the current site

[@TagList;list][#list list as tag] ${tag.name}[/#list][/@TagList]

Examples of pagination labels:

[@TagPage pageSize='20';pagedList][#list pagedList.content as tag] ${tag.name}[/#list][#--contains pagination template--][#include 'page.html'/][/@TagPage] Thank you for reading, the above is "TagList and TagPage tag how to use" content, after the study of this article, I believe we have a deeper understanding of TagList and TagPage tag how to use this problem, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Tags: Tags sites multiple commas English learning content articles nodes functions parameters that is ideas situations data quantity more templates knowledge knowledge points Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Redmi MySQL OPPO Reno vpn