在 sharepoint 2010 中隐藏功能区的特定部分 [英] Hiding specific parts of ribbon in sharepoint 2010

查看:49
本文介绍了在 sharepoint 2010 中隐藏功能区的特定部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以隐藏功能区的特定部分?

Is it possible to hide specific parts of ribbon?

我的要求:

<代码>1.隐藏 s4-ribbonrow 但登录控件应该是可见的,其余的应该是不可见的

<代码>2.隐藏 s4-titlerow 但搜索和导航应该可见

推荐答案

如果您允许匿名访问站点.只有登录用户才能完成功能区.

If you allow annonymous accees on the site. Only logged in users will complete ribbon.

所有其他匿名用户将看到仅带有登录"链接的丝带条,这将提供登录的可能性.

All other anonimous users will see ribbon strip with only "sign in" link that will give possibility to log in.

您使用什么 SharePoint?服务器还是基金会?

What SharePoint do you use? Server or Foundation?

如果服务器可以自定义您的母版页添加

If server you can customize you master page adding

   <asp:LoginView ID="LoginView1" runat="server">
     <anonymoustemplate>
         <style type="text/css">
             #s4-ribbonrow { display: none; }
         </style>
     </anonymoustemplate>
   </asp:LoginView>

给它.这将对匿名用户完全隐藏功能区.

to it. This will hide ribbon completly from anonymous users.

所有其他用户都必须调用管理页面之一才能登录...

All other users will have to call one of administration pages to be able to log in...

希望能帮到你,

安德鲁

这篇关于在 sharepoint 2010 中隐藏功能区的特定部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆