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

@@ -96,7 +96,7 @@ namespace Umbraco.Web.Models.Mapping
if (content.ContentType.IsContainer)
{
AddContainerView(display);
TabsAndPropertiesResolver.AddContainerView(display);
}
TabsAndPropertiesResolver.MapGenericProperties(
@@ -135,32 +135,7 @@ namespace Umbraco.Web.Models.Mapping
});
}
private static void AddContainerView<TPersisted>(TabbedContentItem<ContentPropertyDisplay, TPersisted> display)
where TPersisted : IContentBase
{
var listViewTab = new Tab<ContentPropertyDisplay>();
listViewTab.Alias = "containerView";
listViewTab.Label = "Content";
listViewTab.Id = 25;
listViewTab.IsActive = true;
var listViewProperties = new List<ContentPropertyDisplay>();
listViewProperties.Add(new ContentPropertyDisplay
{
Alias = string.Format("{0}containerView", Constants.PropertyEditors.InternalGenericPropertiesPrefix),
Label = ui.Text("content", "releaseDate"),
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;
}
/// <summary>
/// Gets the published date value for the IContent object