Customize search results in Liferay 7.2 [closed]

2019-09-20 12:01发布

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条回答
太酷不给撩
2楼-- · 2019-09-20 12:40

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.
查看更多
登录 后发表回答