2013-07-10

I have a bit of a conundrum.

I've built a Visual Studio solution for SharePoint 2010. It comprises of a custom master page and a bunch of page layout templates. I've

Assembled a master page

Assembled a series of page layouts

Put together content types for the page layouts

Includes associated imagery, JQuery and CSS files

Everything deploys fine, the templates work, etc. However, when I come to insert a webpart into one of RichHTMLFields on any of the custom page layouts, it inserts the code fine from what I can tell. However, the webpart itself doesn't render. I've tested to make sure it isn't the master page (the webparts render using my custom master page and a default SharePoint page layout). I've completely replaced the site collection and created a new one from scratch and still the same problem

Looking at the logs at the verbose level, it appears that the webpart is doing the proper calls, but it simply isn't rendering any HTML.

I've added a web part zone onto the custom page and that renders the webparts fine. It appears that webparts added to any of publishing HTML placeholders fields that were added as part of the solution package aren't rendering. If so, are there any considerations I need to make for the custom content types? I've included the code below:

Also, here's an extract of the elements.xml for the page layout templates:

Does anyone have any tips, pointers or ideas?

Show more