Getting the routable container path to show up when creating a new content item

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-07-14 23:03:46 -07:00
parent 5345d9ae81
commit dbb9b4eb3f

View File

@@ -59,6 +59,9 @@ namespace Orchard.Core.Routable.Drivers {
if (path != null && path.EndsWith(part.Slug)) { if (path != null && path.EndsWith(part.Slug)) {
model.DisplayLeadingPath = path.Substring(0, path.Length - part.Slug.Length); model.DisplayLeadingPath = path.Substring(0, path.Length - part.Slug.Length);
} }
else {
model.DisplayLeadingPath = GetContainerSlug(part) + "/";
}
return ContentPartTemplate(model, TemplateName, Prefix).Location("primary", "before.5"); return ContentPartTemplate(model, TemplateName, Prefix).Location("primary", "before.5");
} }