I am able to add a custom action for libraries tab on document library , but i am unable to add it on Publishing tab on Pages.
Below is the code , what i am trying.
<?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="Ribbon.PublishTab.Publishing.CheckLinkedPageItems" Location="CommandUI.Ribbon" RegistrationType="List" RegistrationId="850" Sequence="40" Title="Move Documents"> <CommandUIExtension> <CommandUIDefinitions> <CommandUIDefinition Location="Ribbon.PublishTab.Publishing.Controls._children"> <Button Id="Ribbon.PublishTab.Publishing.CheckLinkedPageItemsButton" Alt="Check Linked Page Assets" Sequence="40" Command="CheckLinkedPageItems" Image32by32="/_layouts/images/centraladmin_systemsettings_email_32x32.png" LabelText="Check Assets" TemplateAlias="o1" ToolTipTitle="Check Linked Page Assets" ToolTipDescription="Checks each image, document and page linked to from this page and verified if the asset is both working (not a broken link) and published. You may also use that page to publish all unpublished assets at once." /> </CommandUIDefinition> </CommandUIDefinitions> <CommandUIHandlers> <CommandUIHandler Command="CheckLinkedPageItems" CommandAction="javascript:alert('button clicked!);" /> </CommandUIHandlers> </CommandUIExtension> </CustomAction> </Elements>any thoughts?
- Edited by SPSPY Thursday, January 24, 2013 6:49 PM