mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 19:44:02 +08:00
Fixing comment in a Blog view
--HG-- branch : dev
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
@{
|
||||
Html.AddTitleParts(T("Manage Blog").ToString());
|
||||
}
|
||||
// Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type
|
||||
@* Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type *@
|
||||
@Display(Model)
|
||||
|
||||
@@ -71,13 +71,19 @@ namespace Orchard.DisplayManagement.Implementation {
|
||||
// invoking ShapeMetadata displaying events
|
||||
shapeMetadata.Displaying.Invoke(action => action(displayingContext), Logger);
|
||||
|
||||
// now find the actual binding to render, taking alternates into account
|
||||
ShapeBinding actualBinding;
|
||||
if (TryGetDescriptorBinding(shapeMetadata.Type, shapeMetadata.Alternates, shapeTable, out actualBinding) ) {
|
||||
shape.Metadata.ChildContent = Process(actualBinding, shape, context);
|
||||
// use pre-fectched content if available (e.g. coming from specific cache implmentation)
|
||||
if ( displayingContext.ChildContent != null ) {
|
||||
shape.Metadata.ChildContent = displayingContext.ChildContent;
|
||||
}
|
||||
else {
|
||||
throw new OrchardException(T("Shape type {0} not found", shapeMetadata.Type));
|
||||
// now find the actual binding to render, taking alternates into account
|
||||
ShapeBinding actualBinding;
|
||||
if ( TryGetDescriptorBinding(shapeMetadata.Type, shapeMetadata.Alternates, shapeTable, out actualBinding) ) {
|
||||
shape.Metadata.ChildContent = Process(actualBinding, shape, context);
|
||||
}
|
||||
else {
|
||||
throw new OrchardException(T("Shape type {0} not found", shapeMetadata.Type));
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var frameType in shape.Metadata.Wrappers) {
|
||||
|
||||
Reference in New Issue
Block a user