フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
biswajit sarkar
custom navigation
2012/04/27 1:32
答え

biswajit sarkar

ランク: Regular Member

投稿: 166

参加年月日: 2011/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???
David H Nebinger
RE: custom navigation
2012/04/27 5:57
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11109

参加年月日: 2006/09/01

最近の投稿

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
2012/04/27 7:22
答え

biswajit sarkar

ランク: Regular Member

投稿: 166

参加年月日: 2011/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??
David H Nebinger
RE: custom navigation
2012/04/27 7:57
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11109

参加年月日: 2006/09/01

最近の投稿

No, because I've never needed to do such a thing.
Mazhar Alam
RE: custom navigation
2012/10/19 3:36
答え

Mazhar Alam

ランク: Regular Member

投稿: 201

参加年月日: 2011/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