Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Strange stuff added to page layout page after deployment

  Asked By: Ruchir    Date: May 18    Category: Sharepoint    Views: 2631

We're creating a minimal publishing site definition (according to ACs instructions in Pro SP 2007 WCM Development) as a starting point for our site.

However, after deploying the solution and creating a page, we got an error. It seems like some strange markup was added to our page layout aspx page during deployment. After the last asp:content control, the following was added to the aspx page in sharepoint.

<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><head>
<META name="WebPartPageExpansion" content="full">
<!--[if gte mso 9]><xml>
<mso:PublishingPreviewImage msdt:dt="string">/sites/TestMinimal/_catalogs/masterpage/Preview Images/PublishingMinimal/MinimalPreview.png, /sites/TestMinimal/_catalogs/masterpage/Preview Images/PublishingMinimal/MinimalPreview.png</mso:PublishingPreviewImage>
<mso:ContentType msdt:dt="string">Page Layout</mso:ContentType>
<mso:MasterPageDescription msdt:dt="string">The welcome with splash contains an image field on left, a rich text field and Web Part zones arranged in a header, and 2 columns. The left navigation pane is hidden.</mso:MasterPageDescription>
<mso:PublishingAssociatedContentType msdt:dt="string">;#$Resources:contenttype_Welcomepage_name;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D4;#</mso:PublishingAssociatedContentType>
<title>Welcome splash page</title></head>

However, when looking at the template in the file system, the code is not present. After opening the page in SPD and removing it, the page template works fine.

Have anyone come across this issue before? Any ideas on what might be going on?



1 Answer Found

Answer #1    Answered By: Anila Bhuva     Answered On: May 18

Just managed to find a solution here:


It turned out to be an issue with the casing of the asp:Content controls in the code (MinimalTmp.aspx).


Andrew - if you read this, perhaps you could fix/update the code that's supplied with the book?

Didn't find what you were looking for? Find more on Strange stuff added to page layout page after deployment Or get search suggestion and latest updates.