I'm trying to add a button to the ribbon, in the same place the default "I Like It" and "Tags & Notes" buttons are located. I the elements.xml file for this feature (SocialRibbonControl) and tried copying it, but for some reason it won't work and I'm not sure why. Has anyone ever done this?
Here's the code:
<CustomAction
Id="Ribbon.Documents.AppendSocialRibbonControl"
Location="CommandUI.Ribbon"
Title="$Resources:spscore,SocialRibbonControl_SocialRibbonControlAction_Text"
Sequence="10">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Documents.Groups._children">
<Group Id="Ribbon.Documents.TagsAndNotes"
Sequence="80"
Command="TagsAndNotesGroup"
Description=""
Title="$Resources:spscore,SocialRibbonControl_SocialRibbonControlAction_Text"
Template="Ribbon.Templates.Flexible2">
<Controls Id="Ribbon.Documents.TagsAndNotes.Controls">
<Button
Id="Ribbon.Documents.TagsAndNotes.FavoriteSite"
Sequence="1000"
Alt="Fav"
Command="ILikeIt"
Image16by16="/_layouts/images/QuickTagILikeIt_16.png"
Image32by32="/_layouts/images/QuickTagILikeIt_32.png"
LabelText="Fav"
ToolTipTitle="fav"
ToolTipDescription="fav"
TemplateAlias="o1"/>
</Controls>
</Group>
</CommandUIDefinition>
</CommandUIDefinitions>
</CommandUIExtension>
</CustomAction>
Update I forgot to mention that this is all within a sandboxed solution.
Update 2 Damn you, sandbox! The GlobalSiteLink3 is a farm scoped delegate control. And since you can't deploy farm based features in the sandbox, you can't overwrite it...