我可以为文档库中的文档创建一个自定义文档工作区吗?
是否可以为在特定文档库中创建的文档提供自定义文档工作区?我不需要每个文档库都有这个自定义工作区,只需一个文档库即可。
例如,假设有一个“电影”文档库。我希望为“电影”文档库中创建的任何文档创建一个自定义文档工作区。
这可能吗?如果是的话,努力程度如何?
Is it possible to have a custom document workspace for documents created in a specific document library? I don't need every document library to have this custom workspace, just a single document library.
For example, assume there is a "Movies" document library. I'd like to have a customized document workspace for any documents created in the "Movies" document library.
Is this possible? If so, what is the level of effort?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最简单的答案是创建一个事件接收器并将其附加到库或内容类型(如果您使用这些内容)。
我在 http://furuknap 编写了事件接收器入门指南.blogspot.com/2008/08/automating-business-processes-in_18.html 可能会帮助您入门。由此,只需在 ItemAdded 方法中创建一个新的文档工作区站点即可。
如果您需要我进一步详细说明,请告诉我,但整个练习不会花费您超过一个小时。
.b
The simplest answer would be to create an event receiver and attach that to either the library or to the content types if you use those.
I've written an event receiver primer at http://furuknap.blogspot.com/2008/08/automating-business-processes-in_18.html that might get you started. From that, simply create a new Document Workspace site in the ItemAdded method.
Let me know if you need me to detail further, but this entire exercise shouldn't take you more than an hour.
.b