Monday, July 26, 2010

Changing Publishing Page Layouts in SharePoint 2010

I had a problem this morning with trying to change the page layout for a publishing page in SP2010. I’m building my own content types and layouts for my company’s public-facing site, but I don’t have the time to build everything from scratch, so I’m using the out-of-the-box site definition. So to make things work the way I want them to, I am changing each site after creation to use my custom page layouts.

My problem is that after configuring the content types on the Pages library and changing the available page layouts for the site, I still could not change the layout on a page that was checked out to me and in edit mode. As it turns out, the Page Layout button on the ribbon is sensitive to the approval state of the available layouts. If there is no published version of a layout, it is technically unavailable. If none of the available layouts have been published, the button is disabled altogether.

This behavior is different than in SP2007, so it thoroughly frustrated me. Hopefully this will be of some help to others.

No comments:

Post a Comment