adding media move dialog and support for media containers

media containers are disabled currently for UI reasons
This commit is contained in:
perploug
2013-10-20 23:36:26 +02:00
parent d9a1d3438b
commit a39d41b1b7
8 changed files with 239 additions and 33 deletions

View File

@@ -46,7 +46,7 @@ namespace Umbraco.Web.Models.Mapping
params ContentPropertyDisplay[] customProperties)
where TPersisted : IContentBase
{
var genericProps = display.Tabs.Single(x => x.Id == 0);
@@ -108,6 +108,33 @@ namespace Umbraco.Web.Models.Mapping
}
internal static void AddContainerView<TPersisted>(TabbedContentItem<ContentPropertyDisplay, TPersisted> display)
where TPersisted : IContentBase
{
var listViewTab = new Tab<ContentPropertyDisplay>();
listViewTab.Alias = "containerView";
listViewTab.Label = "Child items";
listViewTab.Id = 25;
listViewTab.IsActive = true;
var listViewProperties = new List<ContentPropertyDisplay>();
listViewProperties.Add(new ContentPropertyDisplay
{
Alias = string.Format("{0}containerView", Constants.PropertyEditors.InternalGenericPropertiesPrefix),
Label = "",
Value = null,
View = "listview",
HideLabel = true
});
listViewTab.Properties = listViewProperties;
//Is there a better way?
var tabs = new List<Tab<ContentPropertyDisplay>>();
tabs.Add(listViewTab);
tabs.AddRange(display.Tabs);
display.Tabs = tabs;
}
protected override IEnumerable<Tab<ContentPropertyDisplay>> ResolveCore(IContentBase content)
{
var aggregateTabs = new List<Tab<ContentPropertyDisplay>>();