在Liferay 7.2中自定义搜索结果 [英] Customize search results in Liferay 7.2

查看:152
本文介绍了在Liferay 7.2中自定义搜索结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过以下方式在Liferay中自定义搜索结果页面:

I need to customize the search results page in Liferay in the following way:

  • 结果必须显示为卡片列表,其中包含标题,摘要(如果有)并链接到详细信息
  • 在页面的侧面,应该有标签列表或结果类别

我该如何实现?我应该自定义现有的JSP还是创建一个新的OSGi捆绑软件?

How can I achieve that? Should I customize existing JSP or create a new OSGi bundle?

推荐答案

在页面的侧面添加标签列表或结果类别

add, on the side of the page, list of tags or categories of the results

您可以通过

结果必须显示为卡片列表,其中包含标题,摘要(如果有)并链接到详细信息

results must be displayed as a list of card with title, abstract (if present) and link to detail

为此,您有一些选择:

  • change the look and feel of the Search Result portlet with CSS from the theme or portlet's Look and Feel configuration (all the data you need is already in the generated DOM)
  • customize the JSP(s) in the Search Result portlet
  • build our own search result portlet with the same logic but different display and use it instead.

这篇关于在Liferay 7.2中自定义搜索结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆