Class TemplateQueryController
The API controller used for building content queries within the template
Inheritance
System.Object
Namespace: Umbraco.Web.Editors
Assembly: Umbraco.Web.dll
Syntax
[PluginController("UmbracoApi")]
public class TemplateQueryController : UmbracoAuthorizedJsonController, IDiscoverable
Methods
View SourceGetAllowedProperties()
Returns a collection of allowed properties.
Declaration
public IEnumerable<PropertyModel> GetAllowedProperties()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PropertyModel> |
GetContentTypes()
Gets a list of all content types
Declaration
public IEnumerable<ContentTypeModel> GetContentTypes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ContentTypeModel> |
GetFilterConditions()
Returns a collection of constraint conditions that can be used in the query
Declaration
public IEnumerable<object> GetFilterConditions()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Object> |
PostTemplateQuery(QueryModel)
Declaration
public QueryResultModel PostTemplateQuery(QueryModel model)
Parameters
Type | Name | Description |
---|---|---|
QueryModel | model |
Returns
Type | Description |
---|---|
QueryResultModel |