mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 04:19:04 +08:00
Update Shapes.cs
This commit is contained in:
@@ -24,6 +24,8 @@ namespace Orchard.Lists {
|
||||
builder.Describe("ListNavigation").OnDisplaying(context => {
|
||||
var containable = (ContainablePart) context.Shape.ContainablePart;
|
||||
var container = _containerService.Value.GetContainer(containable, VersionOptions.Latest);
|
||||
if (container == null) return;
|
||||
|
||||
var previous = _containerService.Value.Previous(container.Id, containable);
|
||||
var next = _containerService.Value.Next(container.Id, containable);
|
||||
|
||||
@@ -32,4 +34,4 @@ namespace Orchard.Lists {
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user