Hello,
I am trying to bind my TabStrip to a SiteMap using the demo example. I am getting errors in the controller on PopulateSiteMap and SiteMapManager (see below). First, did I miss a step in configuration or is there other code that needs to exist? Second, can you bind to a site map and include it in a partial view to be shared by all pages?
public class AdminTabStripController : Controller
{
[PopulateSiteMap(SiteMapName =
"sample", ViewDataKey = "sample")]
public ActionResult SiteMapBinding()
{
if (!SiteMapManager.SiteMaps.ContainsKey("sample"))
{
SiteMapManager.SiteMaps.Register<XmlSiteMap>(
"sample", sitmap => sitmap.LoadFrom("~/sample.sitemap"));
}
return View();
}
}
Thanks for the help
Bill