I'm attempting to add a tab to the Library contextual group. So far that works inside a Document Library. I can also see my Group on the new tab, but I don't see my button (will have more than one eventually). I also do see my tab if the Document Library is in a webpart.
Here is what I want to do in the end: The tab always shows in the Library contextual group. The Group is identical for all document types, but for specific document types it will show a specific button based on the document file extension (doc, docx, xls, xlsx, etc.). The only difference for the buttons, besides images, is that they'll execute certain commands. This is in order to leverage the Word Automation Services.
<CommandUIDefinition Location="Ribbon.LibraryContextualGroup._children">
<Tab Id="Ribbon.WAS.Tab"
Title="Conversion"
Description="Conversion Menu"
Sequence="1001" >
<Scaling Id="Ribbon.WAS.Tab.Scaling">
<MaxSize Id="Ribbon.WAS.Group.MaxSize"
GroupId="Ribbon.WAS.Groups.Group"
Size="OneRow" />
</Scaling>
<Groups Id="Ribbon.WAS.Groups">
<Group
Id="Ribbon.WAS.Groups.Group"
Sequence="1"
Description="Converts documents"
Template="Ribbon.WAS.GroupTemplate"
Title="Document Conversion">
<Controls Id="Ribbon.WAS.Controls">
<Button Id="Ribbon.WAS.Controls.ToPdf"
Sequence="1"
LabelText="Contextual"
Image16by16="/_layouts/Images/WAS/16x16Placeholder.png"
Image32by32="/_layouts/Images/WAS/32x32Placeholder.png"
TemplateAlias="o1"/>
</Controls>
</Group>
</Groups>
</Tab>
</CommandUIDefinition>
</CommandUIDefinitions>