Updating a site using pagtypebuilder



We are in the prosess of updating a site from Episerver 6R2 to 7.

During the upgrade we got some difficulties with Page type builder and decided to rewrite the page definitions to use episerver 7 strongly typed pages.

The only part we aren't able to converte is the 

DefaultVisibleInMenu = false property set on pagetypes.

Is it possible to do the same in strongly typed pages, if so how do i do it?

Dec 17, 2012 10:56

Perhaps something like this in your pagetype model:


public override void SetDefaultValues(ContentType contentType)

this[MetaDataProperties.PageVisibleInMenu] = false;


Dec 17, 2012 11:40
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.