SharePoint - Deploy new default.aspx through feature
I have created a feature which deploys a custom default.aspx page. The deployed file goes to the 开发者_C百科template\features{featureName} directory.
How does SharePoint know to use this default.aspx page instead of the one that is located in SiteTemplates{Site Def name} directory?
You need FeatureReceiver and SPFile.MoveTo method.
Please, use this great tutorial on changing the default.aspx:
http://attis.org/blogs/dan/archive/2008/10/29/how-to-change-the-default-page-of-a-sharepoint-site-using-a-feature.aspx
精彩评论