Ektron.Cms.Framework.Organization.MenuManager

Menu Manager class

Properties
ApiMode Gets or sets the current API access mode. If set to Admin, the API runs with the permissions of an administrator.
ContentLanguage Gets or sets the current content language.
InPreviewMode Gets or sets the current Preview Mode. Returns true if the site is in site preview mode.
MenuManagerService returns an instance of the business objects task manager service.
RequestInformation Gets the current Request Information.
SitePath Gets the site path.
UserId Gets or sets the currently logged in user ID.
Method Description
MenuManager constructor
MenuManager(ApiAccessMode) constructor
Add(MenuData) Adds the specified menu data.
Add(MenuItemData) Adds the specified menu item data.
Add(SubMenuData) Adds the specified Sub menu data.
DeleteMenu(Int64) Deletes the menu and all of its children.
DeleteMenuItem(Int64) Deletes the menu item and all of its children.
GetMenu(Int64) Retrieves a menu item by ID.
GetMenuItem(Int64) Retrieves a menu item by ID.
GetTree(Int64) Gets the menu and all of its children by MenuId. Can get the root level or from a SubMenu.
Update(MenuData) Updates the specified menu data.
Update(MenuItemData) Updates the specified menu item data.
Update(SubMenuData) Updates Menu Data Only for the sub menu item