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 have a portal and in master page I was being asked to hide the whole ribbon so i did this. But since then i am having so many problems like if i have a custom list with a document to attach option the modal dialog opens but no buttons inside and similarly i have a link which opens a custom aspx form embed inside webpartpage the modal dialog doesnt appear ..only site collection administrator can see the modal dialogues. Someone advised me not to hide the ribbon and only hide site action. So how to hide only site action?

Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" Permissions="ManageWeb">
    <script type="text/javascript">
        document.getElementById("s4-ribbonrow").style.display = "block";
    </script>
</Sharepoint:SPSecurityTrimmedControl>
share|improve this question

1 Answer 1

up vote 1 down vote accepted

Like this:

<SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="ManageSubwebs">

<<SharePoint:SiteActions control>>

</SharePoint:SPSecurityTrimmedControl>

Reference: How to remove Site Actions and View All Site Content.

share|improve this answer
    
Benny i guess ive messed the masterpage..i did hide the ribbon long time back and now i dont remember what did i do exactly to hide it as i am unable to unhide my ribbon. please see my edited question –  user342944 Dec 11 '12 at 20:07
    
@user342944 Maybe start over and take a new copy of the v4.master would do the trick? –  Benny Skogberg Dec 11 '12 at 20:14

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.