我有一个Sharepoint网页,用户需要登录才能使用其他功能。 不同的功能需要不同的签名,因此我有一个链接指向列出各种签名及其描述的页面。 由于这个链接,我希望隐藏wssuc提供的“登录”:欢迎; 但是,我仍希望显示wssuc提供的“欢迎”:用户登录后欢迎使用。
我研究了这个并得出了两种可能的解决方案:
在我的代码中使用CSS隐藏“登录”,类似于:[CSS代码添加到母版页]
.myWelcomeMenu { display:none; }[修改后的代码]
<div class=”myWelcomeMenu”> <wssuc:Welcome id=”IdWelcome” runat=”server” EnableViewState=”false”> </wssuc:Welcome> </div>这个问题是它还会隐藏“欢迎”消息。
修改welcome.ascx,但这会影响服务器上的其他站点。有什么建议么?
谢谢,乔治
I have a Sharepoint web page that users are required to sign in to use additional features. Different features require different sign ins, so I have a link to a page listing the various sign ins and their descriptions. Because of this link, I wish to hide the "Sign In" provided by wssuc:Welcome; however, I still wish to display the "Welcome" provided by wssuc:Welcome after the user has signed in.
I've researched this and arrived at 2 possible solutions:
Hide the "Sign In" using CSS in my code similar to this:[CSS code added to master page]
.myWelcomeMenu { display:none; }[modified code in master]
<div class=”myWelcomeMenu”> <wssuc:Welcome id=”IdWelcome” runat=”server” EnableViewState=”false”> </wssuc:Welcome> </div>The problem with this is it will also hide the "Welcome" message.
Modify welcome.ascx, but this affects other sites on the server.Any suggestions?
Thanks, George
最满意答案
我在这里找到了解决问题的方法:
隐藏匿名用户在客户端Web浏览器中的“登录”链接
http://mosshowto.blogspot.com/2008/10/hide-sign-in-link-anonymous-users.html
I found the solution to my problem here:
Hide the “Sign in” link in the client web browser for anonymous users
http://mosshowto.blogspot.com/2008/10/hide-sign-in-link-anonymous-users.html
更多推荐
发布评论