By following the examples in the SP 2010 C# Hands On Lab (SPCHOL308), I've gotten a CustomAction button to show up under the View tab in the Manage group on the DisplayForm.
I want to place this button in a new group called 'Reservations', but I am unable to see my CustomActionGroup.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomActionGroup
Id="Reservations"
Location="CommandUI.Ribbon.DisplayForm"
Sequence="1000"
Title="Reservations">
</CustomActionGroup>
<CustomAction
Id="Ribbon.ListForm.Display.Reservations.ReturnCustomAction"
RegistrationId="106"
RegistrationType="List"
Location="CommandUI.Ribbon.DisplayForm"
Title="Mark as Returned"
GroupId="Reservations">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.ListForm.Display.Manage.Controls._children">
<Button
Id="Ribbon.ListForm.Display.Reservations.Return"
Alt="Mark as Returned"
Sequence="10"
Command="MarkAsReturned"
Image32by32="/_layouts/images/EquipmentReservations/Home2.png"
LabelText="Mark as Returned"
TemplateAlias="o1"
/>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
EnabledScript="return true;"
Command="MarkAsReturned"
CommandAction="javascript:alert('hello there');" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
</Elements>
Can someone point me to a working example or paste one here for me? I've googled but all I seem to find is adding a group to an administration or site page.
I've also tried what Bil Simser posted here Buttons not appearing in custom ribbon group applying the responses, but when I do that, I get xml schema validation errors (doesn't like adding the Scaling element above the Group element.
All I really want to do is add some buttons to the display form so they can launch a workflow automatically without displaying the initiation form. But I want these in a group.
I'm a developer, but relatively new the sharepoint scene. Any help would be greatly appreciated.
By the way, I'm using the Group Calendar list from a Group Worksite based site.