Monthly Archives: January 2011

You are browsing the site archives by month.

SharePoint Page Layouts – extra markup added

Ran into an issue where a page layout that was being deployed as a feature was throwing an error when trying to create a new page: “Only Content controls are allowed directly in a content page that contains Content controls.” I looked at the layout in the solution file and it there was nothing but Content controls. However, when I went to the server I saw a bunch of extra markup added to the end of the file. Apparently, your content tags must have the word “Content” capitalized or SharePoint assumes it just a plain .aspx page. Thanks goes to the link below for providing the solution.

http://geekswithblogs.net/Mathoms/archive/2009/02/20/moss-solutions-and-features-in-deployments–part-3.aspx

Switch to our mobile site