Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
Hi,
You could set default value of "Display in navigation" for specific page type in Admin mode
Go to: Admin mode->Content Type->[Page type from list]->Default values and unclick two checkboxes:
- Use adjusted default settings for pages using this page type
- Display in navigation
You can also override the SetDefaultValues method in your ContentType class.
public override void SetDefaultValues(EPiServer.DataAbstraction.ContentType contentType) { base.SetDefaultValues(contentType); this.VisibleInMenu = false; }
In Episerver 7.19 I need to have the checkbox for show in navigation unchecked by default