Fixing Core.Contents' create and remove route value metadata

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-11-22 22:38:08 -08:00
parent a70c5ad4ea
commit 15310bca8b

View File

@@ -7,8 +7,9 @@ namespace Orchard.Core.Contents.Handlers {
if (context.Metadata.CreateRouteValues == null) { if (context.Metadata.CreateRouteValues == null) {
context.Metadata.CreateRouteValues = new RouteValueDictionary { context.Metadata.CreateRouteValues = new RouteValueDictionary {
{"Area", "Contents"}, {"Area", "Contents"},
{"Controller", "Item"}, {"Controller", "Admin"},
{"Action", "Create"} {"Action", "Create"},
{"Id", context.ContentItem.ContentType}
}; };
} }
if (context.Metadata.EditorRouteValues == null) { if (context.Metadata.EditorRouteValues == null) {
@@ -30,7 +31,7 @@ namespace Orchard.Core.Contents.Handlers {
if (context.Metadata.RemoveRouteValues == null) { if (context.Metadata.RemoveRouteValues == null) {
context.Metadata.RemoveRouteValues = new RouteValueDictionary { context.Metadata.RemoveRouteValues = new RouteValueDictionary {
{"Area", "Contents"}, {"Area", "Contents"},
{"Controller", "Item"}, {"Controller", "Admin"},
{"Action", "Remove"}, {"Action", "Remove"},
{"Id", context.ContentItem.Id} {"Id", context.ContentItem.Id}
}; };