开发者

MOSS how to use feature to propagate pages in root site to child sites

I have a publishing site, say http://dev. I've created a page called About.aspx, so the url would be http://dev/Pages/About.aspx. I'd like to use Feature so that the About.aspx page is available when users access it from the child sites, for example: [http]://dev/2010-01/Pages/About.aspx, [http]://dev/2010-02/Pages/About.aspx, and so on, without having to开发者_开发技巧 copy the About.aspx to each site.


Have these sites already been created? If not you could create your own site definition and add it using a module

<Module Name="AboutPage" Url="Pages" RootWebOnly="FALSE">
   <File Url="About.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" />
</Module>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜