Hi, I've been following the PluralSight tutorial "Introduction to NopCommerce Plugin Development". I've run in to a dead stop, since it seems you guys have changed the implemented method for the IAdminMenuPlugin interface as of version 3.7. The following is the code I've used, which worked for prior versions. I have tried as-nausea tweaking this around, and for the life of me I can't get it to work using your new implemented ManageSiteMap method. Can someone please re-construct this for me, translate it, so that it would work under new ManageSiteMap method for the IAdminMenuPlugin interface:
public SiteMapNode BuildMenuItem()
{
var parentNode = new SiteMapNode()
{
Visible = true,
Title = "Promo Slider",
Url = "/PromoSlider/CreateUpdatePromoSlider"
};
var createUpdateNode = new SiteMapNode()
{
Visible = true,
Title = "New Slider",
Url = "PromoSlider/CreateUpdatePromoSlider"
};
var manageSliders = new SiteMapNode()
{
Visible = true,
Title = "Manage Sliders",
Url = "/PromoSlider/ManagePromoSliders"
}
// now add the 2 sub-menu items
parentNode.ChildNodes.Add(createUpdateNode);
parentNode.ChildNodes.Add(manageSliders);
Return parentNode;
}
Please indicate how to code to get the same effect of seeing the new plugin parent menu, with its 2 child menus, under this new method:
public void ManageSiteMap(SiteMapNode rootNode)
{
}
I found something which worked for just creating one menu item, and I can see it appear in the admin menu. But I can't find anything which adds the 2 sub-menu items like the above sample does under prior nopCommerce versions.
Thanks for your help!