mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Getting the routable container path to show up when creating a new content item
--HG-- branch : dev
This commit is contained in:
@@ -59,6 +59,9 @@ namespace Orchard.Core.Routable.Drivers {
|
||||
if (path != null && path.EndsWith(part.Slug)) {
|
||||
model.DisplayLeadingPath = path.Substring(0, path.Length - part.Slug.Length);
|
||||
}
|
||||
else {
|
||||
model.DisplayLeadingPath = GetContainerSlug(part) + "/";
|
||||
}
|
||||
|
||||
return ContentPartTemplate(model, TemplateName, Prefix).Location("primary", "before.5");
|
||||
}
|
||||
|
Reference in New Issue
Block a user