Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use SpecialList and SpecialPage tags

Shulou Source: shulou.com Published: 2022-06-02 01:27:16 10月01日 Update

Most people do not understand the knowledge points of this article "how to use SpecialList and SpecialPage tags", so the editor summarizes the following, detailed contents, clear steps, and certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to use SpecialList and SpecialPage tags" article.

Function: get a list of topics.

Implementation class

Com.jspxcms.core.web.directive.SpecialListDirective

Com.jspxcms.core.web.directive.SpecialPageDirective

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''.

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

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

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

IsWithImage: whether there is a title diagram. Type: boolean. Such as' true','false'.

IsRecommend: whether or not recommended. Type: boolean. Such as' true','false'.

Example

Get a list of all topics for the current site:

[@ SpecialList limit='8';list] [# list list as special] ${special.title} [/ # list] [/ @ SpecialList]

Get a list of all topics for the current theme category (this example is used in the theme category page, which has a default theme category object category):

[@ SpecialList categoryId=category.id limit='8';list] [# list list as special] ${special.title} [/ # list] [/ @ SpecialList]

Example of a paged label:

[@ SpecialPage categoryId=category.id pageSize='20' PagedList] [# list pagedList.content as special] ${special.title} [/ # list] [#-including paging templates -] [# include 'page.html'/] [/ @ SpecialPage] the above article is about "how to use SpecialList and SpecialPage tags". I believe you all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about it, Please follow the industry information channel.

Tags: Topics content categories tags sites types multiple articles time knowledge articles commas English values functions parameters most objects that is data Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Redmi Apple Docker Linux