Try our conversational search powered by Generative AI!

Episerver - the checkbox for show in navigation unchecked by default


In Episerver 7.19 I need to have the checkbox for show in navigation unchecked by default

Jun 18, 2015 12:48


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

Jun 18, 2015 14:29

You can also override the SetDefaultValues method in your ContentType class.

public override void SetDefaultValues(EPiServer.DataAbstraction.ContentType contentType)
    this.VisibleInMenu = false;
Jun 18, 2015 14:40

Thanks for your answers, both solutions worked as expected. 

Jun 18, 2015 15:05
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.