#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:
Sebastien Ros
2012-06-26 18:25:50 -07:00
parent f87d48a324
commit 444e0c67b7
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}
}