#19546: Adding the edit alternate for Update editors too

Work Item: 19546

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2013-04-24 11:27:29 -07:00
parent d75c245c30
commit 5e080ca39f

View File

@@ -111,6 +111,9 @@ namespace Orchard.ContentManagement {
var theme = workContext.CurrentTheme;
var shapeTable = _shapeTableLocator.Value.Lookup(theme.Id);
// adding an alternate for [Stereotype]_Edit__[ContentType] e.g. Content-Menu.Edit
((IShape)itemShape).Metadata.Alternates.Add(actualShapeType + "__" + content.ContentItem.ContentType);
var context = new UpdateEditorContext(itemShape, content, updater, groupInfoId, _shapeFactory, shapeTable);
BindPlacement(context, null, stereotype);