mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 17:51:45 +08:00
#18090: Fixing container's title issues by adding a new TitlePart
Work Items: 18090 --HG-- branch : 1.x
This commit is contained in:
@@ -78,6 +78,7 @@ namespace Orchard.Core.Routable.Handlers {
|
||||
_routablePathConstraint.AddPath(route.Path);
|
||||
}
|
||||
};
|
||||
|
||||
OnPublished<RoutePart>(handler);
|
||||
OnUnpublished<RoutePart>(handler);
|
||||
|
||||
@@ -140,10 +141,8 @@ namespace Orchard.Core.Routable.Handlers {
|
||||
if (routable == null)
|
||||
return;
|
||||
|
||||
context.Metadata.DisplayText = routable.Title;
|
||||
|
||||
// set the display route values if it hasn't been set or only has been set by the Contents module.
|
||||
// allows other modules to set their own display. probably not common enough to warrant some priority implemntation
|
||||
// allows other modules to set their own display. probably not common enough to warrant some priority implementation
|
||||
if (context.Metadata.DisplayRouteValues == null || context.Metadata.DisplayRouteValues["Area"] as string == "Contents") {
|
||||
var itemPath = routable.Id == _routableHomePageProvider.GetHomePageId(_workContextAccessor.GetContext().CurrentSite.HomePage)
|
||||
? ""
|
||||
|
||||
Reference in New Issue
Block a user