Foros de discusión

Help Regarding Search Portlet

Imran Khalil, modificado hace 11 años.

Help Regarding Search Portlet

Junior Member Mensajes: 36 Fecha de incorporación: 22/10/12 Mensajes recientes
Hey All, I am wondering why search portlet is having this much issues.

I have added search portlet in my theme as $ themedisply.search(); search is working fine.buit when i search with some user other than administrator, the footer is added into the search Portlet content area. and when i make some congiuration changes in portlet, it just applied when i search from home page. form other pages no configurations are added.

Archivos adjuntos:

Oliver Bayer, modificado hace 11 años.

RE: Help Regarding Search Portlet

Liferay Master Mensajes: 894 Fecha de incorporación: 18/02/09 Mensajes recientes
Hi Imran,

I think this is a css bug in your theme. You can check this by switchting to the classic theme and repeat the search. My guess is that your footer element is missing a "style=clear:both;" css rule. You can test it easily with the firefox plugin firebug.

HTH Oli
Imran Khalil, modificado hace 11 años.

RE: Help Regarding Search Portlet

Junior Member Mensajes: 36 Fecha de incorporación: 22/10/12 Mensajes recientes
No,, Its not a css bug. When i logged in with admin role its fine.. but for normal users its like this.
Oliver Bayer, modificado hace 11 años.

RE: Help Regarding Search Portlet

Liferay Master Mensajes: 894 Fecha de incorporación: 18/02/09 Mensajes recientes
Hi Imran,

nevertheless I think it's a css bug which can be e.g. related to liferay roles. If e.g. the admin user gets more search results or other results than the normal user this "search portlet result html/css markup" can influence the positioning of the footer. My guess would be that there is only a tiny difference in the resulting markup between the admin and normal users which is causing this effect. So you should take a close look at missing or additional pieces of code.

To narrow it down apply the classic theme of liferay. There you will find a footer: "power by liferay" if I remember right. So you can test the search portlet the same way you did with your theme and check if the footer is still displayed inside the search portlet for normal users. If not it's definetely a css bug off your theme.

Greets Oli
thumbnail
Koen Olaerts, modificado hace 10 años.

RE: Help Regarding Search Portlet

New Member Mensajes: 19 Fecha de incorporación: 21/12/10 Mensajes recientes
Hello,

I am currently experiencing the same and stumbled across this forum entry. Has there ever been any resolution for this strange behaviour? Even the footer from the classic theme is located inside the results table.
thumbnail
Aldo De Vleeschauwer, modificado hace 10 años.

RE: Help Regarding Search Portlet

Junior Member Mensajes: 35 Fecha de incorporación: 9/03/11 Mensajes recientes
Looks like something related to the way the results HTML is generated and improper exception handling.

So say a <div ..> is opened but not properly closed due to an exception. Then the HTML is messed up.

Search for exceptions in you Liferay log file.