我想看看“suiteBar”以网站集管理员身份登录时 [英] i want to see "suiteBar" when login as site collection administrator

查看:74
本文介绍了我想看看“suiteBar”以网站集管理员身份登录时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好


我使用的是以下代码


  var suitebar = $("#suiteBar");

    // if(GetUrlKeyValue(" uid")!=" 57" || GetUrlKeyValue(" uid")==""){

     &NBSP;&NBSP;&NBSP; if(suitebar.length< 1){$(&#;#s4-ribbonrow")。css('display','none'); }
    } b $ b


成功隐藏套件,我将此代码放在visual webpart上并将其用作母版页上的代码段


<问题:


它也隐藏了所有用户甚至网站集管理员的套件栏,


我想看到或者这个栏应该是可见的当我以网站集管理员身份登录时休息正常


谢谢

解决方案

您好


你可以尝试使用" SPSecurityTrimmedControl"。 


这应该允许网站所有者看到西装栏并向其他用户隐藏。


HTTPS://rahulklst.wordpre ss.com/2014/08/04/sharepoint-2013-hiding-top-office365-bar-and-ribbon-for-non-admin-users-of-sharepoint-2013-site/


https:// manojviduranga.wordpress.com/2016/02/10/controlhide-sharepoint-top-ribbon-to-an-specific-audience/



谢谢



Hi

I am using below code

  var suitebar = $("#suiteBar");
    //if (GetUrlKeyValue("uid") != "57" || GetUrlKeyValue("uid")==" ") {
        if (suitebar.length < 1) { $("#s4-ribbonrow").css('display', 'none'); }
    }

to hide suitebar successfully , I placed this code on visual webpart and use it as a snippets on master page

Problem:

It hides suite bar from all user even site collection administrator as well,

I want to see or this bar should be visible when I login as site collection administrator rest fine

Thanks

解决方案

Hi

Can you try hiding suit bar using "SPSecurityTrimmedControl". 

This should allow site owners to see the suit bar and hide from rest of the users.

https://rahulklst.wordpress.com/2014/08/04/sharepoint-2013-hiding-top-office365-bar-and-ribbon-for-non-admin-users-of-sharepoint-2013-site/

https://manojviduranga.wordpress.com/2016/02/10/controlhide-sharepoint-top-ribbon-to-an-specific-audience/

Thanks


这篇关于我想看看“suiteBar”以网站集管理员身份登录时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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