SharePoint 2010:根据组修剪页面内容
在 SharePoint 2010 中,基于组修剪单个页面上的内容的最佳实践是什么?例如,我有两种类型的客户,每种客户属于不同的组。我只希望客户 1 看到他们的内容(链接、文本等),我只希望组 2 看到他们的内容。我可以将此内容放在不同的页面上,但有些客户属于这两个组,因此在同一页面上显示所有这些信息是有意义的。
In SharePoint 2010, what are the best practices for trimming content on a single page based on group? For example, I have two types of customers that each belong to a different group. I only want customer 1 to see their content (links, text, etc), and I only want group 2 to see their content. I could put this content on separate pages, but some customers will belong to both groups, and it makes sense to display all of this info on the same page.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
取决于安全问题的严重程度。
您可以使用受众来限制内容查询 Web 部件显示的内容 - 但这不是安全限制。
另一种选择是将内容存储在单独的列表中,对列表进行权限限制,并通过 CQWP、标准列表视图或 XsltListViewWebParts 显示信息。
然而,在 SharePoint 2010 Beta 中,如果有一个 Web 部件指向您现在无权访问的列表,则会引发错误,但我不确定这是否已作为错误修复,或者是否仍作为一项功能保留。
Depends how much of an issue Security is.
You could use Audiences to restrict content displayed with the Content Query Web Part - but this is not a security restriction.
Another option is to store the content is separate lists, with permissions restrictions on the lists, and surface the information through CQWPs, standard List Views or XsltListViewWebParts.
However back in SharePoint 2010 Beta an error was thrown if there was a web part pointing to a list you didn't have access to now, but I'm not sure if that was fixed as a bug or if it remains as a feature.
我认为此页面将提供您正在寻找的答案,只要您可以使用 SharePoint 设计器:
I think this page will provide the answer you're looking for, so long as you can use SharePoint designer:
https://www.nothingbutsharepoint.com/sites/eusp/pages/jquery-to-the-rescue-displayinghiding-content-based-on-user-permissions-or-when-edit-items-permissions-dont-work.aspx