How do I access a list of all blog tags (and their post count) on the archive page of my custom Articulate blog?
The PostModal exposes an easy list of tags and categories, but I haven't found a clear way of getting all tags outside of the Tags.cshtml view that inherits from the TagsListModel.
Get All Tags from IMaster or ListModel
How do I access a list of all blog tags (and their post count) on the archive page of my custom Articulate blog?
The PostModal exposes an easy list of tags and categories, but I haven't found a clear way of getting all tags outside of the Tags.cshtml view that inherits from the TagsListModel.
The
ITagQuery
exposes probably everything you need: https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web/ITagQuery.csThe
ITagQuery
is a property of the UmbracoHelper:Umbraco.TagQuery
Articulate hasn't been updated yet to use the Umbraco Core properly (since TagQuery was created later), currently there are some custom extension methods in Articulate to work with tags: https://github.com/Shazwazza/Articulate/blob/master/src/Articulate/UmbracoHelperExtensions.cs ... but you should be able to accomplish what you need with
ITagQuery
is working on a reply...