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 InfoFulltextList and InfoFulltextPage tags

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly explains how to use InfoFulltextList and InfoFulltextPage tags. Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's learn how to use InfoFulltextList and InfoFulltextPage tags.

What it does: Get a list or paginated list of documents (articles), via full-text indexing.

implementation class

com.jspxcms.core.web.directive.InfoFulltextListDirective

com.jspxcms.core.web.directive.InfoFulltextPageDirective

parameters

siteId: Site ID. Multiple are separated by commas, such as '1,2,5'. Default is the current site, if you want to get all site data, you can pass the empty string ''.

nodeId: Node ID. Node ID. Multiple are separated by commas, such as '1,2,5'.

Start Date: Start time. Type: Date. For example.now,'2012-06- 03','2000-12- 20T23:45: 09'.

endDate: End time. Type: Date. For example.now,'2012-06- 03','2000-12- 20T23:45: 09'.

q: Query string. Title, keywords, description, and body are queried.

Title: Title.

keyword: keyword.

Description: Description.

Text: Text.

creator: The user name of the creator.

Author: Author.

excludeId: Does not contain an information ID.

Status: Status. Default: Approved.

fragmentSize: The length of the highlighted body of the keyword. Available at ${info.highlightText}. Default: 100.

example

Query related articles based on the current article title and exclude the current article (assuming the current is a detail page with a default info object):

[@InfoFulltextList q=info.title excludeId=info.id limit='4';list] [#list list as bean] ${substring(bean.title,15,'... ')} [/#list][/@InfoFulltextList]

Query title, keyword, description, and body for matches (${info.highlightTitle} ${info.highlightText} to get keyword highlighted title and keyword highlighted body, respectively. Param can get parameters from URLs, such as mypage.jspx? q=foo&nodeId= 12&begDate =2013-01-01&endDate=2016-12-22, which can be obtained by Param.q Param.nodeId Param. begDate Param.endDate respectively):

[@InfoFulltextPage q=Param.q nodeId=Param.nodeId initiDate =Param. initiDate endDate=Param.endDate pageSize=10;pagedList] Related Results ${pagedList.totalElements}[#if pagedList.totalElements > 0] [#list pagedList.content as info] ${info.highlightTitle} ${info.highlightText} [/#list] [#include "page.html"/][/#if][/@InfoFulltextPage] At this point, I believe that everyone has a deeper understanding of "InfoFulltextList and InfoFulltextPage tags how to use", may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

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