开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜