View Source
Class TemplatesTreeController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Assembly: Umbraco.Web.BackOffice.dll
Syntax
[Authorize(Policy = "TreeAccessTemplates")]
public class TemplatesTreeController : TreeController
Constructors
View Source
Declaration
public TemplatesTreeController(UmbracoTreeSearcher treeSearcher, IMenuItemCollectionFactory menuItemCollectionFactory, ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, IFileService fileService, IEventAggregator eventAggregator)
Parameters
Type |
Name |
Description |
UmbracoTreeSearcher |
treeSearcher |
|
IMenuItemCollectionFactory |
menuItemCollectionFactory |
|
ILocalizedTextService |
localizedTextService |
|
UmbracoApiControllerTypeCollection |
umbracoApiControllerTypeCollection |
|
IFileService |
fileService |
|
IEventAggregator |
eventAggregator |
|
Methods
View Source
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
Returns the menu structure for the node
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
The method called to render the contents of the tree structure
Declaration
protected override ActionResult<TreeNodeCollection> GetTreeNodes(string id, FormCollection queryStrings)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Microsoft.AspNetCore.Http.FormCollection |
queryStrings |
All of the query string parameters passed from jsTree
|
Returns
Type |
Description |
Microsoft.AspNetCore.Mvc.ActionResult<TreeNodeCollection> |
|
View Source
SearchAsync(String, Int32, Int64, String)
Declaration
public async Task<EntitySearchResults> SearchAsync(string query, int pageSize, long pageIndex, string searchFrom = null)
Parameters
Type |
Name |
Description |
System.String |
query |
|
System.Int32 |
pageSize |
|
System.Int64 |
pageIndex |
|
System.String |
searchFrom |
|
Returns
Type |
Description |
Task<EntitySearchResults> |
|