Hi there,
Is there a way to determine which menu is rendered in a MenuProvider when using Designs and Layouts? It seems that
this.XmlNavigation.NavigationName
returns the name of the XSLT stylesheet (without the .xslt extension) which helps in determining which menu is being rendered.
However, I have a situation where I use the same XSLT at two different locations: the main menu and the footer. In the footer I would like to dynamically inject a few items, so I need a way to distinguish between the two menus.
Is this possible? Would be great if we could access the class name for example or if there was an option to specify some unique name in the settings attribute that was made available on the XmlNavigation item.
Kind regards,
Imar
Developer forum
Find name of menu that is being rendered in a MenuProvider
Replies
You must be logged in to post in the forum