November Happy Hour will be moved to Thursday December 5th.

Set Default value Display page in menus to False

Vote:
 

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?

Thanks

Jon

#155161
Sep 09, 2016 16:56
Vote:
 

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
{
[PageType(
Filename = "/Templates/PageTemplates/EventArticle.aspx",
Name = "Event - Awards Event",
AvailableInEditMode = true,
DefaultVisibleInMenu = false,
Description = "Used to add Awards Event")]
public class EventArticleType : PageTypeBase
{
//YOUR CLASS CODE HERE
}
#155217
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.