Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
biswajit sarkar
custom navigation
27 aprile 2012 1.32
Risposta

biswajit sarkar

Punteggio: Regular Member

Messaggi: 166

Data di Iscrizione: 17 ottobre 2011

Messaggi recenti

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 aprile 2012 5.57
Risposta

David H Nebinger

Punteggio: Liferay Legend

Messaggi: 6680

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

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 aprile 2012 7.22
Risposta

biswajit sarkar

Punteggio: Regular Member

Messaggi: 166

Data di Iscrizione: 17 ottobre 2011

Messaggi recenti

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 aprile 2012 7.57
Risposta

David H Nebinger

Punteggio: Liferay Legend

Messaggi: 6680

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

No, because I've never needed to do such a thing.
Mazhar Alam
RE: custom navigation
19 ottobre 2012 3.36
Risposta

Mazhar Alam

Punteggio: Regular Member

Messaggi: 188

Data di Iscrizione: 25 novembre 2011

Messaggi recenti

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