Sharepoint 2007:隐藏wssuc:欢迎“登录”文本,但不欢迎“欢迎”文本(Sharepoint 2007: Hiding wssuc:Welcome “Sign In” text, bu

编程入门 行业动态 更新时间:2024-10-15 02:33:54
Sharepoint 2007:隐藏wssuc:欢迎“登录”文本,但不欢迎“欢迎”文本(Sharepoint 2007: Hiding wssuc:Welcome “Sign In” text, but not “Welcome” text)

我有一个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

更多推荐

本文发布于:2023-04-27 12:52:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1326431.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文本   但不   wssuc   Sharepoint   Sign

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!