Boom! container nodes work for both media and content, fixes:

U4-3540 When creating a Container type node - the list view shows all children of the item it's being created underneath
U4-3541 media tree is not catering for container types
This commit is contained in:
Shannon
2013-11-15 16:56:51 +11:00
parent 0878de4a8b
commit 4545af0a21
8 changed files with 364 additions and 308 deletions

View File

@@ -61,12 +61,11 @@ namespace Umbraco.Web.Models.Mapping
private static void MapGenericCustomProperties(IMedia media, MediaItemDisplay display)
{
/*
* Should this be added? if so we need some changes in the UI tho.
if (media.ContentType.IsContainer)
{
TabsAndPropertiesResolver.AddContainerView(display);
}*/
TabsAndPropertiesResolver.AddContainerView(display, "media");
}
TabsAndPropertiesResolver.MapGenericProperties(media, display);
}