Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
biswajit sarkar
custom navigation
27 de abril de 2012 1:32
Respuesta

biswajit sarkar

Ranking: Regular Member

Mensajes: 166

Fecha de incorporación: 17 de octubre de 2011

Mensajes recientes

I am trying to customize default liferay navigation .
In default liferay navigatin the child menu appear on mouse hover but i try to do this on-muuse click.
mean the child menu will appear when I click on the menu.

How can I do this???
David H Nebinger
RE: custom navigation
27 de abril de 2012 5:57
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11060

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

Not easily. The child menu is a hidden div that has it's visibility toggled when the parent is hovered.

What you're asking to do would now involve CSS changes and javascript support. The CSS changes would remove the :hover from the parent element to stop the automatic stuff. The javascript changes would require adding click event handlers on the parent element in order to manually toggle the child menu.
biswajit sarkar
RE: custom navigation
27 de abril de 2012 7:22
Respuesta

biswajit sarkar

Ranking: Regular Member

Mensajes: 166

Fecha de incorporación: 17 de octubre de 2011

Mensajes recientes

David H Nebinger:
Not easily. The child menu is a hidden div that has it's visibility toggled when the parent is hovered.

What you're asking to do would now involve CSS changes and javascript support. The CSS changes would remove the :hover from the parent element to stop the automatic stuff. The javascript changes would require adding click event handlers on the parent element in order to manually toggle the child menu.



can you please share any code??
David H Nebinger
RE: custom navigation
27 de abril de 2012 7:57
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11060

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

No, because I've never needed to do such a thing.
Mazhar Alam
RE: custom navigation
19 de octubre de 2012 3:36
Respuesta

Mazhar Alam

Ranking: Regular Member

Mensajes: 201

Fecha de incorporación: 25 de noviembre de 2011

Mensajes recientes

Hi

I have also customized the navigation portlet,but after that i am unable to see its child pages on hover..
Any help..

Thanks in advance