Table of Contents

Class MacrosTreeController

Namespace
Umbraco.Cms.Web.BackOffice.Trees
Assembly
Umbraco.Web.BackOffice.dll
[Authorize(Policy = "TreeAccessMacros")]
[Tree("settings", "macros", TreeTitle = "Macros", SortOrder = 4, TreeGroup = "settingsGroup")]
public class MacrosTreeController : TreeController, ITree
Inheritance
MacrosTreeController
Implements
ITree
Inherited Members

Constructors

MacrosTreeController(ILocalizedTextService, UmbracoApiControllerTypeCollection, IMenuItemCollectionFactory, IMacroService, IEventAggregator)

public MacrosTreeController(ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, IMenuItemCollectionFactory menuItemCollectionFactory, IMacroService macroService, IEventAggregator eventAggregator)

Parameters

localizedTextService ILocalizedTextService
umbracoApiControllerTypeCollection UmbracoApiControllerTypeCollection
menuItemCollectionFactory IMenuItemCollectionFactory
macroService IMacroService
eventAggregator IEventAggregator

Methods

CreateRootNode(FormCollection)

protected override ActionResult<TreeNode?> CreateRootNode(FormCollection queryStrings)

Parameters

queryStrings FormCollection

Returns

ActionResult<TreeNode>

GetMenuForNode(string, FormCollection)

protected override ActionResult<MenuItemCollection> GetMenuForNode(string id, FormCollection queryStrings)

Parameters

id string
queryStrings FormCollection

Returns

ActionResult<MenuItemCollection>

GetTreeNodes(string, FormCollection)

protected override ActionResult<TreeNodeCollection> GetTreeNodes(string id, FormCollection queryStrings)

Parameters

id string
queryStrings FormCollection

Returns

ActionResult<TreeNodeCollection>