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

故事扮演 提交于 2019-12-12 01:26:50

问题


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.


回答1:


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>


来源:https://stackoverflow.com/questions/4967485/moss-how-to-use-feature-to-propagate-pages-in-root-site-to-child-sites

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!