I am making a webtemplate. This webtemplate activates a hidden feature which contains a module, deploying the default.aspx page.
The module looks like this:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="salessiteFiles">
<File Path="salessiteFiles\default.aspx" Url="default.aspx">
</Module>
</Elements>
Inside the .aspx page, I have placed a webpart, defined like this:
<SalesWP:SalesWP runat="server" ID="g_b3f403fc_d209_45fd_be6f_6831c665aa1f" ....
When I create a site using my own template, the web part is present, but it appears to be 'ghosted' in some way; the WebPartManager can't find it, and if I open the default.aspx via SPD, the webpartzone is empty. I need to be able to access the webpart via a webpartmanager.