View Source
Interface ITagQuery
Assembly: Umbraco.Core.dll
Syntax
public interface ITagQuery
Methods
View Source
GetAllContentTags(string?, string?)
Declaration
IEnumerable<TagModel?> GetAllContentTags(string? group = null, string? culture = null)
Parameters
| Type |
Name |
Description |
| string |
group |
|
| string |
culture |
|
Returns
View Source
Declaration
IEnumerable<TagModel?> GetAllMediaTags(string? group = null, string? culture = null)
Parameters
| Type |
Name |
Description |
| string |
group |
|
| string |
culture |
|
Returns
View Source
Declaration
IEnumerable<TagModel?> GetAllMemberTags(string? group = null, string? culture = null)
Parameters
| Type |
Name |
Description |
| string |
group |
|
| string |
culture |
|
Returns
View Source
Declaration
IEnumerable<TagModel?> GetAllTags(string? group = null, string? culture = null)
Parameters
| Type |
Name |
Description |
| string |
group |
|
| string |
culture |
|
Returns
View Source
GetContentByTag(string, string?, string?)
Gets all documents tagged with the specified tag.
Declaration
IEnumerable<IPublishedContent> GetContentByTag(string tag, string? group = null, string? culture = null)
Parameters
| Type |
Name |
Description |
| string |
tag |
|
| string |
group |
|
| string |
culture |
|
Returns
View Source
GetContentByTagGroup(string, string?)
Gets all documents tagged with any tag in the specified group.
Declaration
IEnumerable<IPublishedContent> GetContentByTagGroup(string group, string? culture = null)
Parameters
| Type |
Name |
Description |
| string |
group |
|
| string |
culture |
|
Returns
View Source
Gets all media tagged with the specified tag.
Declaration
IEnumerable<IPublishedContent> GetMediaByTag(string tag, string? group = null, string? culture = null)
Parameters
| Type |
Name |
Description |
| string |
tag |
|
| string |
group |
|
| string |
culture |
|
Returns
View Source
Gets all media tagged with any tag in the specified group.
Declaration
IEnumerable<IPublishedContent> GetMediaByTagGroup(string group, string? culture = null)
Parameters
| Type |
Name |
Description |
| string |
group |
|
| string |
culture |
|
Returns
View Source
Gets all tags attached to an entity.
Declaration
IEnumerable<TagModel?> GetTagsForEntity(int contentId, string? group = null, string? culture = null)
Parameters
| Type |
Name |
Description |
| int |
contentId |
|
| string |
group |
|
| string |
culture |
|
Returns
View Source
Gets all tags attached to an entity via a property.
Declaration
IEnumerable<TagModel?> GetTagsForProperty(int contentId, string propertyTypeAlias, string? group = null, string? culture = null)
Parameters
| Type |
Name |
Description |
| int |
contentId |
|
| string |
propertyTypeAlias |
|
| string |
group |
|
| string |
culture |
|
Returns