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()
Assembly: EPiServer.Shell.dll
Version: 11.20.7
public static class MenuHelper
Methods
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 |
|
Declaration
public static int CalculatePathDepth(this string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Int32 |
|
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 |
|
Declaration
public static string CreateLocalMenu(string path, string selectionPath)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.String |
selectionPath |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string CreatePlatformNavigationMenu()
Returns
Type |
Description |
System.String |
|
Declaration
public static string CreatePlatformNavigationMenu(this HtmlHelper htmlHelper)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
htmlHelper |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string EnsureValidMenuPath(this string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.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)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
htmlHelper |
|
Returns
Type |
Description |
System.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 |
|
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 |
|
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 |
|
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 |
|
Declaration
public static string ShellMenu(string path, string selectionPath)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.String |
selectionPath |
|
Returns
Type |
Description |
System.String |
|