Customize search results in Liferay 7.2 [closed]

我怕爱的太早我们不能终老 提交于 2019-12-11 17:14:38

问题


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

  • results must be displayed as a list of card with title, abstract (if present) and link to detail
  • on the side of the page, there should be list of tags or categories of the results

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


回答1:


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

You can do that by configuring your own search page from the provided facets.

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

For this you have some options:

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


来源:https://stackoverflow.com/questions/57622523/customize-search-results-in-liferay-7-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!