November Happy Hour will be moved to Thursday December 5th.

Class MenuHelper

Inheritance
System.Object
MenuHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Navigation
Assembly: EPiServer.Shell.dll
Version: 11.20.7
Syntax
public static class MenuHelper

Methods

ApplyPlatformNavigation(HtmlHelper, String)

Declaration
public static string ApplyPlatformNavigation(this HtmlHelper htmlHelper, string additionalClass = "")
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper htmlHelper
System.String additionalClass
Returns
Type Description
System.String

CalculatePathDepth(String)

Declaration
public static int CalculatePathDepth(this string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.Int32

CreateGlobalMenu(String, String)

Declaration
[Obsolete("Use CreatePlatformNavigationMenu method to render the new menu. For more information, visit world.episerver.com")]
public static string CreateGlobalMenu(string path, string selectionPath)
Parameters
Type Name Description
System.String path
System.String selectionPath
Returns
Type Description
System.String

CreateLocalMenu(String, String)

Declaration
public static string CreateLocalMenu(string path, string selectionPath)
Parameters
Type Name Description
System.String path
System.String selectionPath
Returns
Type Description
System.String

CreatePlatformNavigationMenu()

Declaration
public static string CreatePlatformNavigationMenu()
Returns
Type Description
System.String

CreatePlatformNavigationMenu(HtmlHelper)

Declaration
public static string CreatePlatformNavigationMenu(this HtmlHelper htmlHelper)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper htmlHelper
Returns
Type Description
System.String

EnsureValidMenuPath(String)

Declaration
public static string EnsureValidMenuPath(this string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.String

GlobalMenu(HtmlHelper)

Declaration
[Obsolete("Use CreatePlatformNavigationMenu method to render the new menu. For more information, visit world.episerver.com")]
public static string GlobalMenu(this HtmlHelper htmlHelper)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper htmlHelper
Returns
Type Description
System.String

GlobalMenu(HtmlHelper, String)

Declaration
[Obsolete("Use CreatePlatformNavigationMenu method to render the new menu. For more information, visit world.episerver.com")]
public static string GlobalMenu(this HtmlHelper htmlHelper, string path)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper htmlHelper
System.String path
Returns
Type Description
System.String

GlobalMenu(HtmlHelper, String, String)

Declaration
[Obsolete("Use CreatePlatformNavigationMenu method to render the new menu. For more information, visit world.episerver.com")]
public static string GlobalMenu(this HtmlHelper htmlHelper, string path, string selectionPath)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper htmlHelper
System.String path
System.String selectionPath
Returns
Type Description
System.String

LocalMenu(HtmlHelper, String)

Declaration
public static string LocalMenu(this HtmlHelper htmlHelper, string path)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper htmlHelper
System.String path
Returns
Type Description
System.String

LocalMenu(HtmlHelper, String, String)

Declaration
public static string LocalMenu(this HtmlHelper htmlHelper, string path, string selectionPath)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper htmlHelper
System.String path
System.String selectionPath
Returns
Type Description
System.String

ShellMenu(String, String)

Declaration
public static string ShellMenu(string path, string selectionPath)
Parameters
Type Name Description
System.String path
System.String selectionPath
Returns
Type Description
System.String