在 MOSS 2007 中,我想将自定义控件添加到母版页的全局链接部分,并使其仅对特定受众可见。
受众是通过 SSL 登录的 Active Directory 组的成员,需要提供一个链接才能将他们注销。
如何过滤自定义控件以便只有这些用户才能看到它?是否有 API 或类似 Sharepoint:SPSecurityTrimmedControl
的东西可能有帮助?
In MOSS 2007 I want to add a custom control to the global link section of a master page and have it only visible to a particular audience.
The audience are the members of an active directory group who have logged in via SSL and need to be given a link which will log them out.
How can I filter a custom control so that only these users will see it? Is there an API or something like Sharepoint:SPSecurityTrimmedControl
which might help?
是的,有一个面向受众的 API。以下是来自 MSDN 的一些链接,可帮助您入门:
我还没有遇到针对受众的安全修剪控件但写一个应该相当容易。
Yes there is an API for audiences. Here are some links from MSDN to get you started:
I haven't come across a security trimmed control for audiences but it should be fairly easy to write one.