獲取專題列表。
**實現類**
* com.jspxcms.core.web.directive.SpecialListDirective
* com.jspxcms.core.web.directive.SpecialPageDirective
**參數**
* siteId:站點ID。多個用英文逗號分隔,如'1,2,5'。默認為當前站點,如果要獲取所有站點的數據,可以傳空字符串''。
* categoryId:專題類別ID。多個用英文逗號分隔,如'1,2,5'。
* beginDate:開始時間。類型:Date。如.now,'2012-06-03','2000-10-18T23:45:09'。
* endDate:結束時間。類型:Date。如.now,'2012-06-03','2000-10-18T23:45:09'。
* isWithImage:是否有標題圖。類型:boolean。如'true','false'。
* isRecommend:是否推薦。類型:boolean。如'true','false'。
**范例**
獲取當前站點的所有專題列表:
~~~
[@SpecialList limit='8';list]
[#list list as special]
<a href="${ctx}/special/${special.id}">${special.title}</a>
[/#list]
[/@SpecialList]
~~~
獲取當前專題類別的所有專題列表(本例在專題類別頁中使用,專題類別頁有默認的專題類別對象category):
~~~
[@SpecialList categoryId=category.id limit='8';list]
[#list list as special]
<a href="${ctx}/special/${special.id}">${special.title}</a>
[/#list]
[/@SpecialList]
~~~
分頁標簽示例:
~~~
[@SpecialPage categoryId=category.id pageSize='20';pagedList]
[#list pagedList.content as special]
<a href="${ctx}/special/${special.id}">${special.title}</a>
[/#list]
[#--包含分頁模板--]
[#include 'page.html'/]
[/@SpecialPage]
~~~
- 標簽基本知識
- InfoList與InfoPage標簽
- NodeList標簽
- NodeList與NodePage標簽
- InfoFulltextList與InfoFulltextPage標簽
- SpecialCategoryList標簽
- SpecialList與SpecialPage標簽
- TagList與TagPage標簽
- CommentList與CommentPage標簽
- FriendlinkTypeList標簽
- GuestbookTypeList標簽
- GuestbookList和GuestbookPage標簽
- Node標簽
- Info標簽
- InfoPrev標簽
- InfoNext標簽
- Vote標簽
- 標簽通用參數
- A標簽
- QuestionList與QuestionPage標簽
- Question標簽
- Query標簽