I attempted to create my first Custom Ribbon action to allow users to sort list items. But I failed miserably. the Action wont show in my ribbon at all and I am having trouble finding out what is wrong. I created an empty element and stuck the following code inside.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="Ribbon.Library.Actions.AddAButton"
Location="CommandUI.Ribbon"
RegistrationId="10000"
RegistrationType="List">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.List.Settings.Controls._children">
<Button Id="Ribbon.Library.Share.NewRibbonButton"
Command="NewRibbonButtonCommand"
Image16by16="{SiteUrl}/_layouts/images/siteIcon.png"
Image32by32="{SiteUrl}/_layouts/images/siteIcon.png"
LabelText="Reorder Videos"
TemplateAlias="o2" />
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="NewRibbonButtonCommand"
CommandAction="{SiteUrl}/_layouts/Reorder.aspx?List={ListId}" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
</Elements>