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 InfoList and InfoPage tags

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

Share

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

This article mainly introduces the "InfoList and InfoPage tags how to use" related knowledge, editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope that this "InfoList and InfoPage tags how to use" article can help you solve the problem.

Function: get a list of documents (articles) or paging lists.

Implementation class

Com.jspxcms.core.web.directive.InfoListDirective

Com.jspxcms.core.web.directive.InfoPageDirective

Parameters.

SiteId: site ID. Several are separated by English commas, such as' 1Jing 2JO5'. The default is the current site, and if you want to get data from all sites, you can pass the empty string''.

Model: model coding. Multiple are separated by English commas, such as' foo,bar'.

ModelId: model ID. Several are separated by English commas, such as' 1Jing 2JO5'.

Node: node coding. Multiple are separated by English commas, such as' foo,bar'.

NodeId: node ID. Several are separated by English commas, such as' 1Jing 2JO5'.

NodeNumber: node encoding (wildcard% is supported). Multiple are separated by English commas, such as' foo,bar'.

ExcludeNodeId: does not contain node ID. Several are separated by English commas, such as' 1Jing 2JO5'.

ExcludeNode: no node coding is included. Multiple are separated by English commas, such as' foo,bar'.

ExcludeNodeNumber: does not contain node coding (wildcard% is supported). Multiple are separated by English commas, such as' foo,bar'.

Attr: attribute coding. Multiple are separated by English commas, such as' foo,bar'.

AttrId: attribute ID. Several are separated by English commas, such as' 1Jing 2JO5'.

SpecialId: special topic ID. Several are separated by English commas, such as' 1Jing 2JO5'.

SpecialTitle: topic title. Multiple are separated by English commas, such as' foo,bar'.

Tag:tag tag name. Multiple are separated by English commas, such as' foo,bar'.

TagId:tag label ID. Several are separated by English commas, such as' 1Jing 2JO5'.

TagName:tag tag name (wildcard% is supported). Multiple are separated by English commas, such as' foo,bar'.

User: user name. Multiple are separated by English commas, such as' foo,bar'.

UserId: user ID. Several are separated by English commas, such as' 1Jing 2JO5'.

Priority: priority. Several are separated by English commas, such as' 1Jing 2JO5'.

BeginDate: start time. Type: Date. Such as. Now, '2012-06-03. The Magna 2000-12-20T23 purse 45 purl 09'.

EndDate: end time. Type: Date. Such as. Now, '2012-06-03. The Magna 2000-12-20T23 purse 45 purl 09'.

Title: title (wildcard% is supported).

IncludeId: the document ID to be included. Several are separated by English commas, such as' 1Jing 2JO5'.

ExcludeId: does not contain information ID. Several are separated by English commas, such as' 1Jing 2JO5'.

Status: status.' Average: normal, 'draft: draft,' submission: submitted, 'rejected: rejected,' collected: collected, 'released: pending,' expired: expired, 'Xerox: deleted,' Zero: archived. Default:'A'.

IsIncludeChildren: whether to include child nodes. Type: boolean.

IsMainNodeOnly: whether to include only the primary node. Type: boolean.

IsWithImage: whether there is a title diagram. Type: boolean.

IsPerm: whether you have permission or not. Type: boolean.

P0: field 0 can be queried. Type: tinyint. The maximum is 127.

P1: field 1 can be queried. Type: tinyint. The maximum is 127.

P2: field 2 can be queried. Type: tinyint. The maximum is 127.

P3: field 3 can be queried. Type: tinyint. The maximum is 127.

P4: field 4 can be queried. Type: tinyint. The maximum is 127.

P5: field 5 can be queried. Type: tinyint. The maximum is 127.

P6: field 6 can be queried. Type: tinyint. The maximum is 127.

Example

Get a list of all documents (articles) for the current site:

[@ InfoList;list] [# list list as info] ${info.name} [/ # list] [/ @ InfoList]

Get a list of all documents (articles) for all sites:

[@ InfoList siteId='';list] [# list list as bean] ${bean.name} [/ # list] [/ @ InfoList]

Get a list of documents (articles) whose columns are coded as news:

[@ InfoList node='news';infos] [# list infos as bean] ${bean.name} [/ # list] [/ @ InfoList]

Get a list of documents (articles) with column ID 11 and all its subcolumns:

[@ InfoList nodeId='11' isIncludeChildren='true';infos] [# list infos as bean] ${bean.name} [/ # list] [/ @ InfoList]

Gets a list of documents (articles) for the current column and its subcolumns. (there is a default node object on the home page, column page and document page, which is the current column object and can be used directly)

[@ InfoList nodeId=node.id isIncludeChildren='true';list] [# list list as info] ${info.name} [/ # list] [/ @ InfoList]

Example of paging:

[@ InfoPage nodeId=node.id isIncludeChildren='true';pagedList] [# list pagedList.content as info] ${info.name} [/ # list] [#-including paging templates] [# include 'page.html'/] [/ @ InfoList] about "how to use InfoList and InfoPage tags". Thank you for 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.

Share To

Development

Wechat

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

12
Report