1

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>

1 Answer 1

1

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.

2
  • 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
    Commented Dec 11, 2012 at 20:07
  • @user342944 Maybe start over and take a new copy of the v4.master would do the trick?
    – Benny Skogberg
    Commented Dec 11, 2012 at 20:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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