public void ManageSiteMap(Web.Framework.Menu.SiteMapNode rootNode) { var menuItem = new Web.Framework.Menu.SiteMapNode() { Title = "Upload Bulk Images", Visible = true, Url = "/ImageBulkManagement/Create/" }; var ListView = new Web.Framework.Menu.SiteMapNode() { Title = "List", Visible = true, Url = "/ImageBulkManagement/List/" }; var pluginNode = rootNode.ChildNodes.FirstOrDefault(x => x.SystemName == "Third party plugins"); if (pluginNode != null) { pluginNode.ChildNodes.Add(menuItem); pluginNode.ChildNodes.Add(ListView); } else { rootNode.ChildNodes.Add(menuItem); rootNode.ChildNodes.Add(ListView); } }
public void ManageSiteMap(Web.Framework.Menu.SiteMapNode rootNode) { var menuItem = new Web.Framework.Menu.SiteMapNode() { SystemName = "PayOnDelivery", Title = "PayOnDelivery Config", ControllerName = "PayOnDeliveryPayment", ActionName = "PayOnDeliveryAdmin", Visible = true, RouteValues = new RouteValueDictionary() { { "area", null } }, }; var pluginNode = rootNode.ChildNodes.FirstOrDefault(x => x.SystemName == "Third party plugins"); if (pluginNode != null) { pluginNode.ChildNodes.Add(menuItem); } else { rootNode.ChildNodes.Add(menuItem); } }
public void ManageSiteMap(Web.Framework.Menu.SiteMapNode rootNode) { string pluginMenuName = _localizationService.GetResource("Plugin.Payments.MellatBank.Admin.Menu.Title", languageId: _workContext.WorkingLanguage.Id, defaultValue: "Payment IR"); string settingsMenuName = _localizationService.GetResource("Plugin.Payments.MellatBank.Admin.Menu.Settings.Title", languageId: _workContext.WorkingLanguage.Id, defaultValue: "Settings"); string manageTransactionMenuName = _localizationService.GetResource("Plugin.Payments.MellatBank.Admin.Menu.Trabsaction.Title", languageId: _workContext.WorkingLanguage.Id, defaultValue: "Transaction"); const string adminUrlPart = "Plugins/"; var pluginMainMenu = new Web.Framework.Menu.SiteMapNode { Title = pluginMenuName, Visible = true, SystemName = "Payments.MellatBank-Main-Menu", IconClass = "fa-genderless" }; //pluginMainMenu.ChildNodes.Add(new Web.Framework.Menu.SiteMapNode //{ // Title = settingsMenuName, // Url = _webHelper.GetStoreLocation() + adminUrlPart + "PaymentIR/Settings", // Visible = true, // SystemName = "Payments.MellatBank-Settings-Menu", // IconClass = "fa-genderless" //}); pluginMainMenu.ChildNodes.Add(new Web.Framework.Menu.SiteMapNode { Title = manageTransactionMenuName, Url = _webHelper.GetStoreLocation() + adminUrlPart + "PaymentIR/List", Visible = true, SystemName = "Payments.MellatBank-Transaction-Menu", IconClass = "fa-genderless" }); //string pluginDocumentationUrl = "https://github.com/SevenSpikes/api-plugin-for-nopcommerce"; //pluginMainMenu.ChildNodes.Add(new Web.Framework.Menu.SiteMapNode //{ // Title = _localizationService.GetResource("Plugins.Api.Admin.Menu.Docs.Title"), // Url = pluginDocumentationUrl, // Visible = true, // SystemName = "Api-Docs-Menu", // IconClass = "fa-genderless" //});//TODO: target="_blank" rootNode.ChildNodes.Add(pluginMainMenu); }
public void ManageSiteMap(Web.Framework.Menu.SiteMapNode rootNode) { var CarMakeBulk = new Web.Framework.Menu.SiteMapNode() { Title = "Car Make Bulk", Visible = true, Url = "/CarMake/CreateBulk/" }; var CarMakeBulkList = new Web.Framework.Menu.SiteMapNode() { Title = "Bulk List", Visible = true, Url = "/CarMake/BulkList/" }; var ExtraCarMakeImages = new Web.Framework.Menu.SiteMapNode() { Title = "Extra Car Make Images", Visible = true, Url = "/CarMake/CreateCarMakeImages/" }; var ExtraCarMakeImagesList = new Web.Framework.Menu.SiteMapNode() { Title = "Extra Car Make List", Visible = true, Url = "/CarMake/ImagesList/" }; var ColorHex = new Web.Framework.Menu.SiteMapNode() { Title = "ColorHex", Visible = true, Url = "/CarMake/ColorHex/" }; var ColorHexList = new Web.Framework.Menu.SiteMapNode() { Title = "ColoHex List", Visible = true, Url = "/CarMake/ColorHexList/" }; var pluginNode = rootNode.ChildNodes.FirstOrDefault(x => x.SystemName == "Third party plugins"); if (pluginNode != null) { pluginNode.ChildNodes.Add(CarMakeBulk); pluginNode.ChildNodes.Add(CarMakeBulkList); pluginNode.ChildNodes.Add(ExtraCarMakeImages); pluginNode.ChildNodes.Add(ExtraCarMakeImagesList); pluginNode.ChildNodes.Add(ColorHex); pluginNode.ChildNodes.Add(ColorHexList); } else { pluginNode.ChildNodes.Add(CarMakeBulk); pluginNode.ChildNodes.Add(CarMakeBulkList); pluginNode.ChildNodes.Add(ExtraCarMakeImages); pluginNode.ChildNodes.Add(ExtraCarMakeImagesList); pluginNode.ChildNodes.Add(ColorHex); pluginNode.ChildNodes.Add(ColorHexList); } }