Ribbon Customization : Ribbon button location and their IDs

13 July 2010 6:03 AM Posted by Mano Mangaldas
Labels: ,

SharePoint 2010 Ribbon Customization : Ribbon button location and their IDs


Pre-Requisite : Ribbon Basics



Document Library ( Manage )

<CommandUIDefinition Location="Ribbon.Documents.Manage.Controls._children">
  <Button
 Id="ManoInc.Ribbon.Documents.Manage.SetDocFinal"
 Sequence="40"
 Command="ManoInc.Ribbon.Documents.Manage.SetDocFinal.cmdSetDocFinal"
 Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png" Image16by16Top="-144" Image16by16Left="0"
 Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png" Image32by32Top="-128" Image32by32Left="-256"
 LabelText="Finalize Document"
 ToolTipTitle="Finalize Document"
 ToolTipDescription="Finalize Document"
 TemplateAlias="o1"/>
</CommandUIDefinition>


Manage DocumentSet

<CommandUIDefinition  Location="Ribbon.ManageDocumentSet.MDS.Manage.Controls._children">
  <Button
 Id="ManoInc.Ribbon.ManageDocumentSet.MDS.Manage.SetDocSetFinal"
 Sequence="20"
 Command="ManoInc.Ribbon.ManageDocumentSet.MDS.Manage.cmdSetDocSetFinal"
 Alt="Finalize DocumentSet"
 Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png" Image16by16Top="-144" Image16by16Left="0"
 Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png" Image32by32Top="-128" Image32by32Left="-256"
 LabelText="Finalize DocumentSet"
 ToolTipTitle="Finalize DocumentSet"
 ToolTipDescription="Finalize DocumentSet"
 TemplateAlias="o1" />
</CommandUIDefinition>

Comments (0)

Post a Comment