This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi all,
I'm using static pages and a static menu which is set to "All Static Pages". I'm iterating the menuItems (which are of type MenuItemReference) in my template to generate the menu. I need to access the viewBag of the Page which the menuItem references within my template in order to customize the menu. Is this possible? Can I dynamically load a page viewBag within my template, maybe based on its URL (which I can get from the menuItemReference)?
Many thanks and all the best, Michael
Hi all,
I found a way to do this, pretty easy once I figured out how this all works together. I basically wrote a component which gets all static pages. I then added this component to the navigation partial where I need this information. That was basically it, working great now.
All the best, Michael
1-2 of 2