最近更新页面的 SharePoint 列表
我正在尝试找到一种方法,每当我们的 SharePoint 网站中的任何页面更新时通知一组用户。
最初我们打算使用警报,但我们的网站中有许多子网站。 这意味着(据我所知)我们必须为每个子网站设置警报。 这不是一个选项,因为将创建和删除子站点,我们不想在此处添加额外的步骤。
其次,我们希望使用内容查询 Web 部件来简单地显示过去 5 天内更新的所有页面。 这将使我们能够显示每个网站的每个页面,但我不知道如何让它只显示更新日期 >= 今天的日期 - 5 的项目。
如果有人可以帮助我,我将非常感激它。 谢谢!
I am trying to find a way to inform a group of users whenever any of the pages in our SharePoint site are updated.
Originally we were going to use alerts, but we have numerous subsites in our site. This means (to the best of my knowledge) that we will have to set up alerts for every subsite. This is not an option because subsites will be created and removed and we would rather not add an extra step here.
Secondly, we wanted to use a Content Query webpart to simply show all pages that were updated in the last 5 days. This would allow us to show every page for every site, but I can't figure out how to get it to only show items with an update date >= today's date - 5.
If anyone can help me out, I would really appreciate it. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Jan Tielens 的 What's New Web Part 非常适合此类事情,它有一些可配置的参数,例如项目的最长期限、范围(递归等)以及按内容类型过滤的能力。
http://smarttools.codeplex.com/Wiki/View。 aspx?title=什么%27s%20New
The What's New Web Part by Jan Tielens is good for this sort of thing, and it has a few configurable parameters, such as maximum age of items, scope (recursive etc) and the ability to filter by content types.
http://smarttools.codeplex.com/Wiki/View.aspx?title=What%27s%20New
我认为内容查询 Web 部件的方向是正确的。 不幸的是,它开箱即用,它迫使您设置一个特定的日期而不是特定的天数。
最好的选择是覆盖内容查询 Web 部件或编写您自己的内容查询 Web 部件来提供您所需的功能。 可能还有其他可用的查询 Web 部件可以为您执行此操作。 如果您自己编写,以下 CAML 查询应该会有所帮助:
I think you're on the right track with the Content Query Web Part. Unfortunately out of the box it forces you to set a specific date rather than a certain number of days.
Your best option is to override the Content Query Web Part or write your own that provides the functionality you require. There may also be other query web parts available that do this for you. If you write your own, the following CAML query should help: