Archive for July 1st, 2010

SharePoint 2010 – Setting DefaultPageLayout Programmatically

July 1 2010 49 comments

PublishingWeb has a DefaultPageLayout-property which contains information of the page layout to use when you select New Page from Site Actions. The property is readonly as you can see from msdn.

However – PublishingWeb has a method SetDefaultPageLayout which gives you the way to change the default page layout programmatically. Definition is found from

Read more »