Set Default value Display page in menus to False


Is it possible to set the default value of Display page in menus to flase for specific page types (not all page types) in Episerver 6 R2?



Sep 09, 2016 16:56

I found an article on this so I thought I'd share my findings anyway....

In your PageType class add this to the declaration at the top of the class:

DefaultVisibleInMenu = false

So the code looks like this:

namespace codingexample.Templates.PageTypes
Filename = "/Templates/PageTemplates/EventArticle.aspx",
Name = "Event - Awards Event",
AvailableInEditMode = true,
DefaultVisibleInMenu = false,
Description = "Used to add Awards Event")]
public class EventArticleType : PageTypeBase
Sep 12, 2016 15:31
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.