<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="Ribbon.Documents.DocsetZip"
Title="Document Set Example"
RegistrationType="ContentType"
RegistrationId="0x0120D520"
Location="CommandUI.Ribbon"
>
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.ManageDocumentSet.MDS.Groups._children">
<Group
Id="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup"
Sequence="61"
Description="Bamboo Document Set Group"
Title="Bamboo Manage"
Template="Ribbon.Templates.Flexible2">
<Controls Id="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup.Controls">
<Button
Id="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup.DownLoadAllAsZip"
Command="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup.DownLoadAllAsZip"
Image16by16="/_layouts/images/menupersonalize.gif"
Image32by32="/_layouts/images/menupersonalize.gif"
LabelText="Download All"
Alt="Download this folder as a zip file"
Description="Download this folder as a zip file"
TemplateAlias="o1"
Sequence="1" />
<Button
Id="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup.CheckOutTheseFiles"
Sequence="2"
Command="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup.CheckOutTheseFiles"
Alt="Check Out Selective"
Image16by16="/_layouts/images/menupersonalize.gif"
Image32by32="/_layouts/images/menupersonalize.gif"
LabelText="Check Out Selective"
ToolTipTitle="Check out multiple files"
ToolTipDescription="Use this tool to check out multiple files and folder"
TemplateAlias="o1"/>
<Button
Id="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup.CheckInTheseFiles"
Sequence="3"
Command="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup.CheckInTheseFiles"
Alt="Check In Selective"
Image16by16="/_layouts/images/menupersonalize.gif"
Image32by32="/_layouts/images/menupersonalize.gif"
LabelText="Check In Selective"
ToolTipTitle="Check In Selective"
ToolTipDescription="Use this tool to check in multiple files without comment."
TemplateAlias="o1"/>
<Button
Id="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup.SendTheseFiles"
Sequence="3"
Command="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup.SendTheseFiles"
Alt="Send Links Selective"
Image16by16="/_layouts/images/menupersonalize.gif"
Image32by32="/_layouts/images/menupersonalize.gif"
LabelText="Send Links Selective"
ToolTipTitle="Send Links Selective"
ToolTipDescription="Use this tool to send mail all these items as link."
TemplateAlias="o1"/>
</Controls>
</Group>
</CommandUIDefinition>
<CommandUIDefinition
Location="Ribbon.ManageDocumentSet.MDS.Scaling._children">
<MaxSize
Id="Ribbon.ManageDocumentSet.MDS.Scaling.BambooDocSetGroup.MaxSize"
Sequence="15"
GroupId="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup"
Size="LargeLarge" />
</CommandUIDefinition>
<CommandUIDefinition Location="Ribbon.Templates._children" >
<GroupTemplate Id="Ribbon.Templates.Flexible2">
<Layout Title="LargeLarge">
<OverflowSection Type="OneRow" TemplateAlias="o1" DisplayMode="Large"/>
<OverflowSection Type="OneRow" TemplateAlias="o2" DisplayMode="Large"/>
</Layout>
<Layout Title="LargeMedium">
<OverflowSection Type="OneRow" TemplateAlias="o1" DisplayMode="Large"/>
<OverflowSection Type="ThreeRow" TemplateAlias="o2" DisplayMode="Medium"/>
</Layout>
<Layout Title="LargeSmall">
<OverflowSection Type="OneRow" TemplateAlias="o1" DisplayMode="Large"/>
<OverflowSection Type="ThreeRow" TemplateAlias="o2" DisplayMode="Small"/>
</Layout>
<Layout Title="MediumLarge">
<OverflowSection Type="ThreeRow" TemplateAlias="o1" DisplayMode="Medium"/>
<OverflowSection Type="OneRow" TemplateAlias="o2" DisplayMode="Large"/>
</Layout>
<Layout Title="MediumMedium">
<OverflowSection Type="ThreeRow" TemplateAlias="o1" DisplayMode="Medium"/>
<OverflowSection Type="ThreeRow" TemplateAlias="o2" DisplayMode="Medium"/>
</Layout>
<Layout Title="MediumSmall">
<OverflowSection Type="ThreeRow" TemplateAlias="o1" DisplayMode="Medium"/>
<OverflowSection Type="ThreeRow" TemplateAlias="o2" DisplayMode="Small"/>
</Layout>
<Layout Title="SmallLarge">
<OverflowSection Type="ThreeRow" TemplateAlias="o1" DisplayMode="Small"/>
<OverflowSection Type="OneRow" TemplateAlias="o2" DisplayMode="Large"/>
</Layout>
<Layout Title="SmallMedium">
<OverflowSection Type="ThreeRow" TemplateAlias="o1" DisplayMode="Small"/>
<OverflowSection Type="ThreeRow" TemplateAlias="o2" DisplayMode="Medium"/>
</Layout>
<Layout Title="SmallSmall">
<OverflowSection Type="ThreeRow" TemplateAlias="o1" DisplayMode="Small"/>
<OverflowSection Type="ThreeRow" TemplateAlias="o2" DisplayMode="Small"/>
</Layout>
<Layout Title="Popup" LayoutTitle="LargeMedium" />
</GroupTemplate>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup.DownLoadAllAsZip"
CommandAction="BLOCKED SCRIPT__doPostBack('DownloadZipDelegateEvent', '')"
EnabledScript="BLOCKED SCRIPTsingleEnable();"/>
<CommandUIHandler
Command="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup.CheckOutTheseFiles"
CommandAction="BLOCKED SCRIPT__doPostBack('CheckOutTheseFiles', '')"
EnabledScript="BLOCKED SCRIPTsingleEnable();"/>
<CommandUIHandler
Command="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup.SendTheseFiles"
CommandAction="BLOCKED SCRIPT
var context = SP.ClientContext.get_current();
var items = SP.ListOperation.Selection.getSelectedItems();
var p_body = '';
for(var k = 0; k < items.length; k++) {
var dv = document.getElementById(items[k]['id']);
var tagsA = dv.getElementsByTagName('A');
p_body += tagsA[0].href + '\n';
}
SP.Ribbon.EMailLink.openMailerWithUrl(p_body);
"
EnabledScript="BLOCKED SCRIPTsingleEnable();"/>
<CommandUIHandler
Command="Ribbon.ManageDocumentSet.MDS.BambooDocSetGroup.CheckInTheseFiles"
CommandAction="BLOCKED SCRIPT__doPostBack('CheckInAllTheseFiles', '')"
EnabledScript="BLOCKED SCRIPTsingleEnable();"/>
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
<Control Id="GlobalSiteLink0" Sequence="90"
ControlClass="Bamboo.DocSetExample.DownloadAsZip"
ControlAssembly="Bamboo.DocSetExample, Version=1.0.0.0, Culture=neutral, >
PublicKeyToken=972e48e7af0d9424"
<Property Name="IsVisible">false</Property>
</Control>
</Elements>