I'm very new to to sharepoint and found a tutorial to allow me to create a custom action in order to place a button on the ribbon. I'm trying to use that to add a button to a list view but It isn't working.
Here is the tutorial xml to add a button to the shared doc library:
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="DemoHelloWorldButton"
RegistrationId="101"
RegistrationType="List"
Location="CommandUI.Ribbon"
Sequence="5"
Title="Hello World">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.Documents.Manage.Controls._children">
<Button
Id="DemoHelloWorldButton"
Alt="Hello World Ribbon Button"
Sequence="10"
Command="Demo_HelloWorld"
Image32by32="/_layouts/images/MyProject/img.jpg"
LabelText="Hello World Demo"
TemplateAlias="o1"/>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="Demo_HelloWorld"
CommandAction="javascript:alert('Hello World!');"
/>
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
</Elements>
This works great, and following some instructions online I've tried using firebug to determine the location so that I can add it this for lists. Based on what I'm seeing in firebug I should be able to make this change:
<CommandUIDefinition Location="Ribbon.ListItem.Manage.Controls._children"/>
However this isn't working at all and I've been unable to find any help. Most of the examples online are the either the same Shared Docs example, or they are using list the way I am. Thank you for taking a look at my question.
