Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to hide the SharePoint Ribbon Tabs based on a users permissions. I know that I can use the SPSecurityTrimmedControl to do this but I need to wrap it around just the tabs and not the whole ribbon. The reason for this is because I am trying to 'lighten' the page for the user as I believe that there are some javascript associated with using the tabs and we don't want that to be downloaded with the page if a user doesn't use the tabs.

Is there any way to do this?

Thanks and regards,

share|improve this question
add comment

2 Answers 2

All you need to do is to follow these steps :)

  • Open the master page, find the div tag:
  • Put the following around it:
<Sharepoint:SPSecurityTrimmedControl runat="server" Permissions="ManageWeb">
<div id="s4-ribbonrow" …</div>
</SharePoint:SPSecurityTrimmedControl>

or you can follow this Blog, it shows you three ways of doing it but I guess you dont want to use javascript as once I used it and it broke few things

If you want to dig it deep check these links out

http://social.technet.microsoft.com/Forums/en/sharepoint2010customization/thread/9e52de43-7941-4e61-976b-d6bf2f8d926c

http://fusionovation.com/blogs/mbell/archive/2008/09/18/security-trimmed-controls-in-sharepoint.aspx

http://sharepoint.smayes.com/2011/02/hiding-the-sharepoint-2010-ribbon-for-readers-a-proof-of-concept/

Hope this helped you solving your issue :)

share|improve this answer
    
I want to keep the ribbonrow - I just need to hide the tabs in that row. The user still needs to be able to see the welcome control and there are also some links (Home, Contact, etc) that are placed there that need to be viewed at all times. –  user10287 Aug 23 '12 at 19:54
add comment

you can try this :)

http://johanolivier.blogspot.co.uk/2011/12/show-or-hide-sharepoint-ribbon-tab.html

hope it helps you!

share|improve this answer
    
Link only answer! Try and get some time to update it. –  Hugh Wood Dec 17 '12 at 12:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.