mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
#18189: Applying default Location when no placement is provided
Work Item: 18189 --HG-- branch : 1.x
This commit is contained in:
@@ -123,6 +123,9 @@ namespace Orchard.ContentManagement {
|
|||||||
Path = VirtualPathUtility.AppendTrailingSlash(_virtualPathProvider.ToAppRelative(request.Path)) // get the current app-relative path, i.e. ~/my-blog/foo
|
Path = VirtualPathUtility.AppendTrailingSlash(_virtualPathProvider.ToAppRelative(request.Path)) // get the current app-relative path, i.e. ~/my-blog/foo
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// define which location should be used if none placement is hit
|
||||||
|
descriptor.DefaultPlacement = defaultLocation;
|
||||||
|
|
||||||
var placement = descriptor.Placement(placementContext);
|
var placement = descriptor.Placement(placementContext);
|
||||||
if (placement != null) {
|
if (placement != null) {
|
||||||
placement.Source = placementContext.Source;
|
placement.Source = placementContext.Source;
|
||||||
|
Reference in New Issue
Block a user