mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 03:14:10 +08:00
#18650: Defining a default route pattern for new types, and displaying a
warning Work Item: 18650 --HG-- branch : 1.x
This commit is contained in:
@@ -19,7 +19,7 @@ namespace Orchard.Core.Navigation.Handlers {
|
||||
protected override void GetItemMetadata(GetContentItemMetadataContext context) {
|
||||
var part = context.ContentItem.As<MenuPart>();
|
||||
|
||||
if (part != null) {
|
||||
if (part != null && context.ContentItem.TypeDefinition.Settings["Stereotype"] == "MenuItem") {
|
||||
context.Metadata.DisplayText = part.MenuText;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user