更改文档库默认视图
我基本上有一个相当大的网站集,其中包含各种网站和子网站,它们都包含自己的文档库。我需要更改每个文档库的默认视图以包含以下字段:
- 签出到。
- 检查评论。
这没问题,因为我已经编写了一个应用程序,它将循环遍历所有现有列表并执行此操作,但是有没有一种方法可以更改文档库的模板,以便将来创建的任何列表都将自动在其列表中包含这两个字段默认视图?
我正在使用WSS 3.0。
谢谢
I basically have quite a large site collection with various site and sub sites that all contain their own document libraries. I need to change the default view of each document library to include the following fields:
- Checked out to.
- Check in comments.
This is ok as I have written an app that will loop through all existing lists and do this however is there a way I can change the template for a document library so that any future lists that are created will automatically contain these two fields in the their default view?
I am using WSS 3.0.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 WSS 3.0 中,不支持修改现成文档库的方法。
如果您不介意更改被更新覆盖的风险,则可以进行修改。
在 SPF 2010 中,您可以在 ListAdded 事件接收器中进行更改。
In WSS 3.0 there is no supported way to modify the out of the box document library
If you don't mind the risk of your change being overwritten by updates then you can modify
In SPF 2010 you can make your changes in a ListAdded event receiver.