I've created a custom document library which is defined through a Visual Studio solution. I also have ribbon customizations which add buttons. My problem is that these buttons do not display on the custom document library which was defined through a Visual Studio solution,; they only display on lists made through the SharePoint interface.
One such custom ribbon button:
<CustomAction
Id="AddRibbonButton"
RegistrationType="List"
RegistrationId="101"
Location="CommandUI.Ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.Documents.Share.Controls._children">
<Button
Id="Ribbon.Documents.Share.CopyPathToClipboard"
Alt="Copy Path To Clipboard"
Sequence="10"
Image32by32="/_layouts/images/CopyPath32x32.png"
Command="CopyPath"
LabelText="Copy Path"
TemplateAlias="o1"
/>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="CopyPath"
CommandAction="javascript: copyPath();" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
I adding a second copy of this XML and setting the RegistrationId to the ListTemplateId but that didn't work.
If anyone has any advice it would be greatly appreciated.
Thanks.