Fórum

How to remove the drop down choice in Search portlet ?

Techno Crat, modificado 13 Anos atrás.

How to remove the drop down choice in Search portlet ?

Junior Member Postagens: 32 Data de Entrada: 01/10/10 Postagens Recentes
Hi all!

How to remove the drop down choice in Search portlet?

Thanks,
thumbnail
prakash harigopal, modificado 13 Anos atrás.

RE: How to remove the drop down choice in Search portlet ?

Regular Member Postagens: 101 Data de Entrada: 23/06/10 Postagens Recentes
If you are still looking for the answer , pls follow as below.

Create a hook to customize the page \html\taglib\ui\search\start.jsp , here u can customize how ever u want to see the search page.

thanks
Prakash.
thumbnail
Jairo Luna, modificado 13 Anos atrás.

RE: How to remove the drop down choice in Search portlet ?

Junior Member Postagens: 57 Data de Entrada: 21/07/10 Postagens Recentes
You can remove it also through css styles. Just you have to make a definition similar to


#yourOwnStyleName select {
   display: none;
}


Jairo
Techno Crat, modificado 13 Anos atrás.

RE: How to remove the drop down choice in Search portlet ?

Junior Member Postagens: 32 Data de Entrada: 01/10/10 Postagens Recentes
Thanks. It is working emoticon
thumbnail
Kushal Jayswal, modificado 7 Anos atrás.

RE: How to remove the drop down choice in Search portlet ?

New Member Postagens: 18 Data de Entrada: 19/11/12 Postagens Recentes
Jairo Luna:
You can remove it also through css styles. Just you have to make a definition similar to


#yourOwnStyleName select {
   display: none;
}


Jairo


The solution can be used for temporary purpose. It is not advisable to go with on production sites. Because however we are just hiding the available content. But the page is going to take time to generate that select tag for dropdown items.

I am into Liferay themes not core developer so I am not the best guy to provide solution but yes developer could create a hook to overwrite existing functionality or do some trick. Finally output must not have select tag coming.

Thanks.