I want to use the .NET 2.0 menu control and feed it with page data from EpiServer. I thought I could use the PageTreeData and loop through all the pages and add them to the menu control. But I couldn't find a way of getting a collection with the pages in the PageTreeData.
Another solution could be to generate XML with the PageTree control, loop through the XML and add pages to the menu control. But I rather skip this extra (probably time consuming) step.
Has anyone done what I'm trying to do?
/Erik
Hello Erik!
Have you tried the 2.0 Site Map Provider code sample? I would guess that this would be useful for you and you can find it here:
http://www.episerver.com/en/EPiServer_Knowledge_Center/developerforum/2628/2631/ASPNET_20_Site_Map_Provider_and_TreeView/