How to use QuestionList and QuestionPage tags
This article introduces the relevant knowledge of "how to use QuestionList and QuestionPage tags". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Purpose: questionnaire list and questionnaire paging.
Implementation class
Com.jspxcms.ext.web.directive.QuestionListDirective
Com.jspxcms.ext.web.directive.QuestionPageDirective
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''.
UserId: user ID. A questionnaire that the user has not yet participated in.
HistoryUserId: historical user ID. A questionnaire that the user has already participated in.
InPeriod: whether it is within the investigation period. Type: boolean. Such as' true','false'.
Status: status. Default: audited.
Example
Get a list of all topics for the current site:
This is the end of [@ QuestionPage pageSize='10';pagedList] [# list pagedList.content as question] ${question.title} ${question.creationDate?string ('yyyy-MM-dd')} [/ # list] [/ @ QuestionPage] "how to use QuestionList and QuestionPage tags". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!