Completes: U4-3040 Create UmbracoHelper methods for querying real tags on the front-end and creates new TagQueryContext

This commit is contained in:
Shannon
2013-10-24 13:31:10 +11:00
parent f13fd59059
commit 8d724ff2f7
5 changed files with 132 additions and 0 deletions

View File

@@ -33,6 +33,15 @@ namespace Umbraco.Web
private readonly UmbracoContext _umbracoContext;
private readonly IPublishedContent _currentPage;
private PublishedQueryContext _queryContext;
private TagQueryContext _tagContext;
/// <summary>
/// Lazy instantiates the tag context
/// </summary>
public TagQueryContext Tags
{
get { return _tagContext ?? (_tagContext = new TagQueryContext(UmbracoContext.Application.Services.TagService)); }
}
/// <summary>
/// Lazy instantiates the query context