In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the relevant knowledge of "what are the basic knowledge points of Jspxcms tags". The editor shows you the operation process through an actual case. The method of operation is simple and fast, and it is practical. I hope this article "what are the basic knowledge points of Jspxcms tags" can help you solve the problem.
Jspxcms tags are developed based on FreeMarker, and all syntax is FreeMarker syntax.
Type:
Jspxcms provides tags (Directives) and methods (Methods)
Label structure:
[@ InfoList node='documentation' isIncludeChildren='true' limit='4';infos]
[# list infos as info]
[@ A bean=info length= "20" append= "..." Target= "_ blank" /]
[/ # list]
[/ @ InfoList]
Signature: InfoList.
Parameters: node, isIncludeChildren, limit. The commonly used parameter types are integer, Boolean, and string. Such as: integer, limit=4, or limit='4',. Both methods can automatically identify and convert types. Boolean, isIncludeChildren=true, or isIncludeChildren='true', systems automatically recognize and convert types.
Return value: infos. Type: java.util.ArrayList. The name of the returned value can be freely named, such as list or infoList. Note, however, that if it is a Page tag, the return value will be named pagedList in order to do the same paging style.
The label returns the value type:
The return types of tags can be divided into three types: list type (java.util.List), paging type (org.springframework.data.domain.Page), entity type (such as Info, Node, etc.)
The label of the return list type is named * List, such as NodeList, InfoList, CommentList, etc.
The tag that returns the paging type is named * Page, such as NodePage, InfoPage, CommentPage, etc.
The label of the returned entity is usually the class name of the entity, such as Node, Info
Method structure:
${getNode ('news'). Name}
Method name: getNode.
Parameter: 'news'. The parameters of the method are usually recommended to be passed by the actual type. For example, ${getNode (8) .name} means to get the name attribute of a node object with ID 8, and ${getNode ('news'). Name} represents to get the name attribute of a node object encoded as' news'.
Return value: the return value of a method is usually an entity class or a string. The method return value in the example is the entity class: com.jspxcms.core.domain.Node
This is the end of the content about "what are the basic knowledge points of Jspxcms tags". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.