I have situation where I need to load a navigation set to a custom variable and then use foreach to loop through the variable to display the navigation items. I don't want to use the navigation template due to my requirement.
I was able to load the navigation set using the code below.
And if I do &mvt:global:pcm_menu, I can see the entire structure of the menu. Where I am stuck is how to use the foreach loop to loop though the menu items. I tried something like below and was unsuccessful.
What am I missing or doing wrong?
Thanks
I was able to load the navigation set using the code below.
Code:
<mvt:item name="readytheme" param="Load_NavigationSet('main_menu', pcm_menu )" />
Code:
<mvt:foreach iterator="pcm_menu:item" array="pcm_menu:items"> &mvt:global:pcm_menu:item:name;<br> </mvt:foreach>
Thanks
Comment