makes HasContainerInPath public

This commit is contained in:
Shannon
2017-03-28 15:55:45 +11:00
parent fe11d4770d
commit a9fe46da0c
6 changed files with 30 additions and 5 deletions

View File

@@ -88,7 +88,7 @@ namespace Umbraco.Web.Models.Mapping
{
// map the IsChildOfListView (this is actually if it is a descendant of a list view!)
var parent = content.Parent();
display.IsChildOfListView = parent != null && (parent.ContentType.IsContainer || ((ContentTypeService) contentTypeService).HasContainerInPath(parent.Path));
display.IsChildOfListView = parent != null && (parent.ContentType.IsContainer || contentTypeService.HasContainerInPath(parent.Path));
//map the tree node url
if (HttpContext.Current != null)
@@ -214,6 +214,7 @@ namespace Umbraco.Web.Models.Mapping
}
if (content.HasPublishedVersion)
{
//TODO: This is horribly inneficient
var published = applicationContext.Services.ContentService.GetPublishedVersion(content.Id);
return published.UpdateDate;
}