Content type ‘0x01010007FF3E057FA8AB4AA42FCB67B453FFC100E214EEE741181F4E9F7ACC43278EE811’ not found

I just got the above error after deploying a custom site definition.

Within the publishin feature I didn’t have AvailablePageLayouts set. I’m assuming that SharePoint tries to pick up a default layout which doesn’t exist.

Changing:

<Property Key=”AvailablePageLayouts” Value=””/>

To:  <PropertyKey=AvailablePageLayoutsValue=~SiteCollection/_catalogs/masterpage/MyLayout.aspx/>

fixed the issue.

Advertisements