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 want to hide the workflow button: Ribbon.List.Settings.ManageWorkflows

Which scope should the feature have (web or site)?

Now I try:

<HideCustomAction Id="RemoveRibbonButton"
    Location="CommandUI.Ribbon.List.Settings.ManageWorkflows">
</HideCustomAction>

on site scoped feature. But it doesn't work.

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

This is XML to hide ManageWorkflows button.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
    Id="RemoveRibbonButton"
    Location="CommandUI.Ribbon">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition
          Location="Ribbon.List.Settings.ManageWorkflows" />
      </CommandUIDefinitions>
    </CommandUIExtension>
  </CustomAction>
</Elements>

Check Walkthrough: Removing a Button from the Server Ribbon for more info.

share|improve this answer
    
Thank you! Can you check the link you provided? I can't open it. –  Anatoly Mironov Sep 6 '11 at 12:41
    
sry. link updated –  Vedran Rasol Sep 6 '11 at 12:43
    
Is it possible to revert this operation (if I need this ribbon button in the future)? –  Anatoly Mironov Sep 6 '11 at 12:48
1  
Just retract solution and you have your button back. –  Vedran Rasol Sep 6 '11 at 12:50
    
Thank you for your answers, Vedran! Very kind of you! –  Anatoly Mironov Sep 6 '11 at 12:51
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.