mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-25 02:44:56 +08:00
Pushing driver and editor down to ElementDescriptor.
This allows for more granular control over what gets rendered when. One scenario that this enables is where one can create an Element Blueprint and use it as a widget via the ElementWrapperPart.
This commit is contained in:
@@ -49,7 +49,7 @@ namespace Orchard.Layouts.Providers {
|
||||
var elementName = GetDisplayName(shapeDescriptor.Value.BindingSource);
|
||||
var closureDescriptor = shapeDescriptor;
|
||||
yield return new ElementDescriptor(elementType, shapeType, T(elementName), snippetElement.Category) {
|
||||
Displaying = displayContext => Displaying(displayContext, closureDescriptor.Value)
|
||||
Display = displayContext => Displaying(displayContext, closureDescriptor.Value)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user