London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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