mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19546: Adding the edit alternate for Update editors too
Work Item: 19546 --HG-- branch : 1.x
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user