Skip to content

Commit

Permalink
Further changes on changeset fad19db4346e
Browse files Browse the repository at this point in the history
  • Loading branch information
andreymaz committed Nov 28, 2012
1 parent 5f5d08e commit 7ae0362
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/Presentation/Nop.Web/Administration/Views/Shared/Menu.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@
Html.Telerik().Menu().Name("Admin")
.BindTo("admin", (item, siteMapNode) =>
{
item.RouteValues = new RouteValueDictionary()
{
{ "area", "Admin" }
};
if (!String.IsNullOrWhiteSpace(item.ControllerName))
{
//apply admin area as described here - http://www.nopcommerce.com/boards/t/20478/broken-menus-in-admin-area-whilst-trying-to-make-a-plugin-admin-page.aspx
item.RouteValues = new RouteValueDictionary()
{
{ "area", "Admin" }
};
}

var imageUrl = siteMapNode.Attributes["ImageUrl"];
if (imageUrl != null && !string.IsNullOrEmpty(imageUrl.ToString()))
Expand Down

0 comments on commit 7ae0362

Please sign in to comment.