Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use TagList and TagPage tags

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report