Answered how to hide ribbon buttons from Sharepoint 2010 page?

  • 2012年8月18日 8:13
     
     

    Hi All,

    I am working on a SharePoint 2010 Project. I have Enterprise version of SharePoint 2010.

    I want:

    I want to hide the site action, browse button, page button, editing or list or library or picture tools form the ribbon. Navigation should be visible. This is only for the general users.

    I did:

    I have developed a visual studio 2010 state machine workflow. I was resetting the permission from Workflow. but the problem is that I have Contribute and Read permissions in Workflow. I want to assign a permission so that user can edit the item. When I am giving contribute then user has delete permission too. And on Read permission user can not edit the item.

    Now I have decided a new approach:

    To assign the contribute permission and hide the delete button from the ribbon and the Title column from the view. Now user can not delete the item. user will open the edit page from link given in Email and then he will click on Save button. once saved we will hide the save button from the Edit page. Same for the page which has browse and Page tabs.

    The Problem:

    We have tried all the workarounds found on the web. Used SPDesigner,trim control, JQuery, Script and CSS too. the result is unable to hide the browse, Page and List tools tab from the top of the page. We have worked on Master page too.

    One More Point:

    If a way is there to hide only for the general users. I mean all the hidden tabs and buttons should be visible for the "Full Control" or "Administrator". or if We can add "Edit" permission from Workflow then it would be good.

    Please help.

    Thanks,


    - Khan Abubakar

全部回复