掲示板

custom navigation

11年前 に biswajit sarkar によって更新されました。

custom navigation

Regular Member 投稿: 166 参加年月日: 11/10/17 最新の投稿
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
11年前 に David H Nebinger によって更新されました。

RE: custom navigation

Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
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.
11年前 に biswajit sarkar によって更新されました。

RE: custom navigation

Regular Member 投稿: 166 参加年月日: 11/10/17 最新の投稿
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
11年前 に David H Nebinger によって更新されました。

RE: custom navigation

Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
No, because I've never needed to do such a thing.
thumbnail
11年前 に Mazhar Alam によって更新されました。

RE: custom navigation

Regular Member 投稿: 191 参加年月日: 11/11/25 最新の投稿
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