Automatic population of web-parts in a New Web Part Page.

Tags: SharePoint

When a new sharepoint is created, the default page is automatically populated with several default web-parts as described in the ONET.XML and the <Modules> section. This is (relatively) well documented and clear.

However, if I create a new Web Part Page in an existing site (from the Create -> Web Part Page menu) based on one of the 9 templates in the DOCTEMP\SMARTPGS directory, it is also populated with a web-part - the TitleBarWebPart, specifically. I don't want this web-part added to my new pages, and I want others to be auto-added. However, I am yet to find where this population is defined - couldn't find it in any XML file under the site definition, and the actual code that creates the webpage is in owssvr.dll, hence not managed code and not browsable with the Reflector.

Anyone know where this is hiding?

1 Comment

  • Bil Simser said

    Not sure but you can try taking out the WebPartZone called TitleBar from the aspx page. The only problem might be that the page creation will fail because it will try to insert the web part into a zone that doesn't exist.

    There's also an article on changing the aspx pages and choices available for Web Part page construction which might help. I don't have the link handy but a quick Google shoudld turn it up.

Comments have been disabled for this content.