Table of Contents

Class ContentBlueprintTreeController

Namespace
Umbraco.Cms.Web.BackOffice.Trees
Assembly
Umbraco.Web.BackOffice.dll

The content blueprint tree controller

[Authorize(Policy = "SectionAccessContent")]
[Tree("settings", "contentBlueprints", SortOrder = 12, TreeGroup = "settingsGroup")]
public class ContentBlueprintTreeController : TreeController, ITree
Inheritance
ContentBlueprintTreeController
Implements
ITree
Inherited Members

Remarks

This authorizes based on access to the content section even though it exists in the settings

Constructors

ContentBlueprintTreeController(ILocalizedTextService, UmbracoApiControllerTypeCollection, IMenuItemCollectionFactory, IContentService, IContentTypeService, IEntityService, IEventAggregator)

public ContentBlueprintTreeController(ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, IMenuItemCollectionFactory menuItemCollectionFactory, IContentService contentService, IContentTypeService contentTypeService, IEntityService entityService, IEventAggregator eventAggregator)

Parameters

localizedTextService ILocalizedTextService
umbracoApiControllerTypeCollection UmbracoApiControllerTypeCollection
menuItemCollectionFactory IMenuItemCollectionFactory
contentService IContentService
contentTypeService IContentTypeService
entityService IEntityService
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>