开发者

SharePoint - Deploy new default.aspx through feature

开发者 https://www.devze.com 2023-01-16 12:02 出处:网络
I have created a feature which deploys a custom default.aspx page.The deployed file goes to the 开发者_C百科template\\features{featureName} directory.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号