Updating a site using pagtypebuilder

 

Hi

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?

#64283 Dec 17, 2012 10:56
  •  

    Perhaps something like this in your pagetype model:

     


    public override void SetDefaultValues(ContentType contentType)
    {
    base.SetDefaultValues(contentType);

    this[MetaDataProperties.PageVisibleInMenu] = false;
    }

     

    #64285 Dec 17, 2012 11:40