Fórumok

Multiple navigations

Jimit Shah, módosítva 9 év-val korábban

Multiple navigations

Junior Member Bejegyzések: 62 Csatlakozás dátuma: 2014.02.05. Legújabb bejegyzések
Hi,
My requirement is that I should have two navigations on my page. One would be at the top and the second at the bottom. So, is it possible to include two different navigation velocity files in my portal_normal.vm ? Or is there any other way to do it ?
thumbnail
David H Nebinger, módosítva 9 év-val korábban

RE: Multiple navigations

Liferay Legend Bejegyzések: 14914 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
Sure, you can replicate the stuff for the top nav bar in the footer. Note, however, that this can negatively impact UX. When you have a nav bar at the bottom that comes up when you hover, it's typically a drop down, not up, which dynamically changes the page height and will force some weird scrolling behavior for the user.

Normally the bottom nav is not so much a menu as much as it is a condensed yet flattened set of links for pages so you don't have to worry about the dynamic display issues.
thumbnail
Ryan Schuhler, módosítva 9 év-val korábban

RE: Multiple navigations

Junior Member Bejegyzések: 77 Csatlakozás dátuma: 2012.07.06. Legújabb bejegyzések
Yes, like David said you can implement a footer nav. You can do this either by just writing it straight into the portal_normal (which might be easier if if its just a couple of static links) or you could create another velocity file and parse it in the footer. Basically you can create any velocity file (footer_navigation.vm for example) and put it in your /diffs/templates/ folder of the theme and they you can call it into portal_normal.vm wherever you want to use it and it would look like
#parse ("$full_templates_path/footer_navigation.vm")
Jimit Shah, módosítva 9 év-val korábban

RE: Multiple navigations

Junior Member Bejegyzések: 62 Csatlakozás dátuma: 2014.02.05. Legújabb bejegyzések
Hi,
As suggested I have added a footer_nav.vm in the the footer section and I am getting a navigation at the bottom. Now my requirement is that I need a different set of pages at the bottom. How to do that?

Regards.
thumbnail
Ahmed bouchriha, módosítva 9 év-val korábban

RE: Multiple navigations

Junior Member Bejegyzések: 55 Csatlakozás dátuma: 2012.05.04. Legújabb bejegyzések
Hi

You can use the solution explained here

Themeray

Best Regards
thumbnail
Olaf Kock, módosítva 9 év-val korábban

RE: Multiple navigations

Liferay Legend Bejegyzések: 6396 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzések
Jimit Shah:
Now my requirement is that I need a different set of pages at the bottom.


It would really help to know what different means in your case. Configurable? Fixed? Dynamic? What do you currently have in your footer navigation? If you just copied "navigation.vm", you obviously have the same. What in that file don't you understand to know how to apply the same principle to a different set of pages?
Jimit Shah, módosítva 9 év-val korábban

RE: Multiple navigations

Junior Member Bejegyzések: 62 Csatlakozás dátuma: 2014.02.05. Legújabb bejegyzések
Olaf Kock:
Jimit Shah:
Now my requirement is that I need a different set of pages at the bottom.


It would really help to know what different means in your case. Configurable? Fixed? Dynamic? What do you currently have in your footer navigation? If you just copied "navigation.vm", you obviously have the same. What in that file don't you understand to know how to apply the same principle to a different set of pages?


Hi Olaf,
Thanks for the reply.
My requirement is that I want a different set of pages in the footer navigation with the same functionality as that of normal navigation, i.e. I should be able to add pages in the footer navigation dynamically. However these pages must be different from that of the top navigation and both the navigations should not interfere with each other in any way.
I have worked out a work around for this, though it is not quite effective. I have ten pages combining both the top and the footer navigation.What I have done is, I have executed the loop in the top navigation file for the first five times and in the footer navigation file for the next five times. But with this work around, adding of pages dynamically to any of the navigations won't be easy.

Regards.
thumbnail
Ramanjeneyulu Bodepudi, módosítva 9 év-val korábban

RE: Multiple navigations

Junior Member Bejegyzések: 42 Csatlakozás dátuma: 2012.02.24. Legújabb bejegyzések
Yes it should possible, But you have maintain velocity count in navigation.vm file .

1.Top should be upto specific velocity count
2.Bottom should be start velocity count next to top.

Finally you have to apply your styles based on your navigation.