Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentBlueprintTreeController

    The content blueprint tree controller

    Inheritance
    System.Object
    Microsoft.AspNetCore.Mvc.ControllerBase
    UmbracoApiControllerBase
    UmbracoApiController
    UmbracoAuthorizedApiController
    TreeControllerBase
    TreeController
    Namespace: Umbraco.Cms.Web.BackOffice.Trees
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    [Authorize(Policy = "SectionAccessContent")]
    public class ContentBlueprintTreeController : TreeController
    Remarks

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

    Constructors

    View Source

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

    Declaration
    public ContentBlueprintTreeController(ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, IMenuItemCollectionFactory menuItemCollectionFactory, IContentService contentService, IContentTypeService contentTypeService, IEntityService entityService, IEventAggregator eventAggregator)
    Parameters
    Type Name Description
    ILocalizedTextService localizedTextService
    UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection
    IMenuItemCollectionFactory menuItemCollectionFactory
    IContentService contentService
    IContentTypeService contentTypeService
    IEntityService entityService
    IEventAggregator eventAggregator

    Methods

    View Source

    CreateRootNode(FormCollection)

    Declaration
    protected override ActionResult<TreeNode?> CreateRootNode(FormCollection queryStrings)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.FormCollection queryStrings
    Returns
    Type Description
    Microsoft.AspNetCore.Mvc.ActionResult<System.Nullable<TreeNode>>
    View Source

    GetMenuForNode(String, FormCollection)

    Declaration
    protected override ActionResult<MenuItemCollection> GetMenuForNode(string id, FormCollection queryStrings)
    Parameters
    Type Name Description
    System.String id
    Microsoft.AspNetCore.Http.FormCollection queryStrings
    Returns
    Type Description
    Microsoft.AspNetCore.Mvc.ActionResult<MenuItemCollection>
    View Source

    GetTreeNodes(String, FormCollection)

    Declaration
    protected override ActionResult<TreeNodeCollection> GetTreeNodes(string id, FormCollection queryStrings)
    Parameters
    Type Name Description
    System.String id
    Microsoft.AspNetCore.Http.FormCollection queryStrings
    Returns
    Type Description
    Microsoft.AspNetCore.Mvc.ActionResult<TreeNodeCollection>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentBlueprintTreeController(ILocalizedTextService, UmbracoApiControllerTypeCollection, IMenuItemCollectionFactory, IContentService, IContentTypeService, IEntityService, IEventAggregator)
    • Methods
      • CreateRootNode(FormCollection)
      • GetMenuForNode(String, FormCollection)
      • GetTreeNodes(String, FormCollection)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX