In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains the "NodeList and NodePage tags how to use", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "NodeList and NodePage tags how to use" it!
Function: get column list, usually used for website navigation (first-level column list) and sub-column list.
Implementation class
Com.jspxcms.core.web.directive.NodeListDirective
Com.jspxcms.core.web.directive.NodePageDirective
Parameters.
SiteId: site ID. Shaping, can be an array. If it is not provided, it defaults to the current site, and if it is empty, it is all sites.
ParentId: parent node ID. Plastic surgery. If the parentId and parent parameters are not provided, the first-level column is obtained by default.
Parent: parent node coding. String. If the parentId and parent parameters are not provided, the first-level column is obtained by default.
IsHidden: whether the front desk is hidden. Boolean. Not provided as false, empty is all.
IsRealNode: whether it is a real node. Boolean. The default is false. The real node refers to the node with the document, that is, the column with the document model set. There are some columns that need to be used as single-page columns (show a page when you click on the column, rather than a list of documents, such as about us)
IsIncludeChildren: whether to include child nodes. Boolean. The default is false.
Example
Get the first-level column. If parentId and parent parameters are not provided, the first-level column is obtained by default:
[@ NodeList;list] [# list list as n] ${n.name} [/ # list] [/ @ NodeList]
Get the first-level column and all its sub-columns. If parentId and parent parameters are not provided, the first-level column is obtained by default:
[@ NodeList isIncludeChildren='true';ns] [# list ns as n] ${n.name} [/ # list] [/ @ NodeList]
Get the sub-column with column ID 12:
[@ NodeList parentId=12;nodes] [# list nodes as node] ${node.name} [/ # list] [/ @ NodeList]
Get the sub-column whose column code is' news':
[@ NodeList parent='news';list] [# list list as bean] ${bean.name} [/ # list] [/ @ NodeList]
Make a secondary menu for navigation (you need to add your own dynamic effects):
Home page [@ NodeList;list] [# list list as n] ${n.name} [@ NodeList parentId=n.id;children] [# list children as child] ${child.name} [/ # list] [/ @ NodeList] [/ # list] [/ @ NodeList]
Get the subcolumns of the current column (there is a default node object on the home page, column page and detail page, which is the current column object and can be used directly):
[@ NodeList parentId=node.id;list] [# list list as n] ${n.name} [/ # list] [/ @ NodeList]
Example of NodePage paging:
[@ NodePage parentId=node.id pageSize=20 PagedList] [# list pagedList.content as n] ${n.name} [/ # list] [#-including paging code -] [# include 'page.html'/] [/ @ NodePage] Thank you for your reading, the above is the content of "how to use NodeList and NodePage tags". After the study of this article, I believe you have a deeper understanding of how to use NodeList and NodePage tags, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.