论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
biswajit sarkar
custom navigation
2012年4月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年4月27日 上午5:57
答复

David H Nebinger

Community Moderator

等级: Liferay Legend

帖子: 9271

加入日期: 2006年9月1日

最近的帖子

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年4月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年4月27日 上午7:57
答复

David H Nebinger

Community Moderator

等级: Liferay Legend

帖子: 9271

加入日期: 2006年9月1日

最近的帖子

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