I am in the process creating the webpart associated ribbon following the example. http://msdn.microsoft.com/en-us/library/gg552606.aspx I would like to create my own GroupTemplate. However it seams I cannot find the location in the Elements.xml to put the definition. I tried inside
2 Answers
Location for ribbon group templates is Ribbon.Templates._children
. For example:
<CustomAction Id="MyRibbonCustomization" Location="CommandUI.Ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Templates._children">
<GroupTemplate Id="Ribbon.Templates.MyCustomGroupTemplate">
<!-- your group template definition goes here -->
</GroupTemplate>
</CommandUIDefinition>
</CommandUIDefinitions>
</CommandUIExtension>
</CustomAction>
This seems to cover what you need:
http://www.sharepointnutsandbolts.com/2010/01/customizing-ribbon-part-1-creating-tabs.html