更新基本模板并应用于引用它的所有网站 - MOSS 2007
今天我又提出了更多 SharePoint 问题! 我感谢迄今为止提供帮助的所有人!
这是我的情况:
我必须在共享点内创建一个自定义应用程序。 我正在使用一个托管 Web 部件页面的文档库,并且我正在使用 Web 用户控件来执行所有数据操作和显示。 一旦我按照我想要的方式构建应用程序,我将把文档库转换为模板,这样我就可以在多个站点上创建相同的内容(许多客户使用此应用程序)。
我遇到的问题是我需要知道发生了什么/如何更新它,以便我的更改将应用到引用该模板的所有网站。
帮助! 任何知道如何执行此操作或对创建多个站点都能够利用的自定义应用程序有更好想法的人都会非常有帮助!
谢谢
More SharePoint questions from me again today! I thank everyone that has helped thus far!
Here is my situation:
I have to create a custom application inside of sharepoint. I am using a document library which hosts web part pages and i am using Web User Controls to do all the manipluating and displaying of data. Once I build the app the way i want, I am going to turn the doc lib into a template that way i can create the same thing on multiple sites (many customers using this app).
The issue that I am running into is that I need to know what happens/how do I update it so that my changes will apply itself to all sites that are referencing the template.
HELP! anyone who knows how to do this OR has a better idea for creating custom apps that multiple sites will be able to take advantage of would be SO helpful!
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简短的回答是,即使使用自定义网站/列表定义,您也无法实现此目的。
从网站或列表定义创建网站或列表后,它基本上是独立的(布局和母版页)但是,修改确实会应用于引用它们的所有站点)。
解决方法是创建一个站点功能,该功能可以迭代站点并执行您想要执行的任何自定义操作。
Short answer is that you cannot accomplish this, even with a custom site/list definition.
Once a site or list is created from a site or list definition, it is basically on its own (layouts and master pages modifications, however, do get applied to all sites referencing them).
Once workaround would be to create a site feature that iterates through sites and performs whatever custom action you wish to do.
对于这样的要求,您确实应该创建自定义列表/站点定义。 不仅仅是将自定义列表保存到模板中。
您在列表/站点定义中更新的任何内容都将反映到引用定义的站点。 不幸的是,模板的情况并非如此。 您必须删除其他网站上的旧列表,然后使用新模板重新创建它们。
如何创建列表定义 - http://msdn.microsoft.com/en-我们/library/ms466023.aspx
有关站点定义,请转至 - http://technet.microsoft.com/en- us/library/cc287930.aspx
詹姆斯
For requirement like this, you really should create custom list/site definition. NOT just save customized list into template.
Anything you have updated in list/site definition will be reflect to the sites that are referencing the definitions. Unfortunately this is not the case for Template. You will have to delete the old list you have on other sites, then re-create them again with new template.
how to create list definition - http://msdn.microsoft.com/en-us/library/ms466023.aspx
for site definition please go - http://technet.microsoft.com/en-us/library/cc287930.aspx
James