Foren
custom navigation
biswajit sarkar, geändert vor 12 Jahren.
custom navigation
Regular Member Beiträge: 166 Beitrittsdatum: 17.10.11 Neueste Beiträge
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???
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, geändert vor 12 Jahren.
RE: custom navigation
Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
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.
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, geändert vor 12 Jahren.
RE: custom navigation
Regular Member Beiträge: 166 Beitrittsdatum: 17.10.11 Neueste BeiträgeDavid 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, geändert vor 12 Jahren.
RE: custom navigation
Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
No, because I've never needed to do such a thing.
Mazhar Alam, geändert vor 11 Jahren.
RE: custom navigation
Regular Member Beiträge: 191 Beitrittsdatum: 25.11.11 Neueste Beiträge
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
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