I’m working on a sharepoint publishing site that has custom page layouts. I’d like to add a web part zone to one of the custom layouts that present a default web part that the user can then remove or change the properties of when they create a page.
I’m trying this:
<WebPartPages:WebPartZone id="zone1" runat="server" title="Zone 1">
<ZoneTemplate>
<Something:LookingForLinks runat="server" id="wp_lookingForLinks"/>
</ZoneTemplate>
</WebPartPages:WebPartZone>
The web part zone is available for adding webparts, but my default web part is not present after a page is created. Am I missing something here?
I would suggest use Onet.xml provided with your site definition to add a webpart to page. Page layout is for providing a Page Layout not for personalizing it for your custom site. So please use Onet.xml for this purpose