How to add custom action for Publishing Tab on Pages?

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
January 24th, 2013 9:48pm

Hi,

Check the secquence number . I don't see any issue in your code. Try with different sequence numbers.

Free Windows Admin Tool Kit Click here and download it now
January 25th, 2013 12:01pm

Did you find any solution on this?
January 13th, 2014 3:47am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics