Fórumok

custom navigation

biswajit sarkar, módosítva 12 év-val korábban

custom navigation

Regular Member Bejegyzések: 166 Csatlakozás dátuma: 2011.10.17. Legújabb bejegyzések
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???
thumbnail
David H Nebinger, módosítva 12 év-val korábban

RE: custom navigation

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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, módosítva 12 év-val korábban

RE: custom navigation

Regular Member Bejegyzések: 166 Csatlakozás dátuma: 2011.10.17. Legújabb bejegyzések
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??
thumbnail
David H Nebinger, módosítva 12 év-val korábban

RE: custom navigation

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
No, because I've never needed to do such a thing.
thumbnail
Mazhar Alam, módosítva 11 év-val korábban

RE: custom navigation

Regular Member Bejegyzések: 191 Csatlakozás dátuma: 2011.11.25. Legújabb bejegyzések
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