I'm developing a Web Template, extending the Blank template. I had some code in a web feature receiver to place webparts on the web's
default.aspx but ran into a similar issue to this: the page
default.aspx, provisioned as a module defined and referenced in
onet.xml, wasn't created until after the feature receiver had already fired.
If I create a new module in my package in Visual Studio, containing a copy of the
default.aspx file from 14\TEMPLATE\SiteTemplates\sts, add this module to my web feature, and deploy, everything works fine.
This seems a bit of a hack, though. In particular, if Microsoft changes the existing
default.aspx, my sites won't pick up the changes.
Is there any way I can make my module reference the existing
default.aspx in the hive and still ghost it to my custom sites?
(I initially just tried using the XML from the original
onet.xml in my module - as it does cause the file to be deployed from its original location in the hive - but the module errors because it doesn't contain the referenced file.)