Dear Experts,
From past few days I am exploring on Magnolia, I am newbie to this.
Magnolia samples, provides a template which is written in FTL.
[#if model.navigation.showHorizontalNavigation]
[#assign navigation = model.navigation.horizontalNavigation/]
[#if (model.navigation.horizontalLevel >1 && navigation.selectedItem??) && (navigation.selectedItem.level>1 || !navigation.selectedItem.leaf)]
[#assign cssClass = "class=\"plus-navsub\""]
[/#if]
<div id="nav-global" ${cssClass!}>
<h6>${i18n['structural.navigation']}</h6>
[@renderNavigation navigation=navigation/]
</div><!-- end nav-global -->
[/#if]
I have been trying to replicate the same using JSP scriptlets.
Unfortunately i am not able to continue, the problem is:
I am able to get the $ {model} object in JSP, but when i try to use ${model.navigation} it says navigation is not defined.
Can any one expert here please guide me, how can i achieve this ?
I need to display the two level horizontal tabs.
Level1_tab1 Level1_tab2 Level1_tab3 Level1_tab4
|
v
Level2_tab1 Level2_tab2 Level2_tab3
Any guide lines from Magnolia / code snippet will be helpful.
Thanks in advance.
Raj.