Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Cameron McBride
Customize the search results page?
9 de diciembre de 2011 8:39
Respuesta

Cameron McBride

Ranking: Expert

Mensajes: 277

Fecha de incorporación: 8 de febrero de 2011

Mensajes recientes

I would like to do two different things to the search results page:

1. Change the layout and add some other portlets to it.

2. Change the order of the sections, for example move Directory results to the top.
Nagendra Kumar Busam
RE: Customize the search results page?
10 de diciembre de 2011 8:32
Respuesta

Nagendra Kumar Busam

Ranking: Liferay Master

Mensajes: 567

Fecha de incorporación: 7 de julio de 2009

Mensajes recientes

What was the Liferay version you are using?
Jelmer Kuperus
RE: Customize the search results page?
10 de diciembre de 2011 16:32
Respuesta

Jelmer Kuperus

Ranking: Liferay Legend

Mensajes: 1187

Fecha de incorporación: 10 de marzo de 2010

Mensajes recientes

1. the searchresults are displayed in the maximized search portlet. And while you could use <liferay-portlet:runtime to embed other portlets in the searchresults page that's almost certainly not what you'll want to do. Probably it would be easiest to create a search results page just like any other portal page that you lay out the way you want it, and on which you add the search portlet (portlet id 3) Then you create a jsp hook for /html/taglib/ui/search/start.jsp and change the portletURL so that it links to your search results page

2. You'll need to create a jsp hook for /html/portlet/search/search.jsp to change the ordering. You'll be looking to change the following line

1portlets = ListUtil.sort(portlets, new PortletTitleComparator(application, locale));
Krzysiek Bąk
RE: Customize the search results page?
25 de enero de 2012 3:28
Respuesta

Krzysiek Bąk

Ranking: New Member

Mensajes: 3

Fecha de incorporación: 17 de enero de 2012

Mensajes recientes

Hello,

Could you explain how should I change the portletURL?
F.ex. I have search widget embedded in theme, and hidden search page which I want to display search results, how can I set up portletURL to achieve this?

Thank you in advance.