How to use TagList and TagPage tags
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!