Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
biswajit sarkar
custom navigation
27 de Abril de 2012 01:32
Resposta

biswajit sarkar

Ranking: Regular Member

Mensagens: 166

Data de entrada: 17 de Outubro de 2011

Mensagens recentes

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
27 de Abril de 2012 05:57
Resposta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensagens: 13099

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

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
27 de Abril de 2012 07:22
Resposta

biswajit sarkar

Ranking: Regular Member

Mensagens: 166

Data de entrada: 17 de Outubro de 2011

Mensagens recentes

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
27 de Abril de 2012 07:57
Resposta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensagens: 13099

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

No, because I've never needed to do such a thing.
Mazhar Alam
RE: custom navigation
19 de Outubro de 2012 03:36
Resposta

Mazhar Alam

Ranking: Regular Member

Mensagens: 201

Data de entrada: 25 de Novembro de 2011

Mensagens recentes

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