Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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