Adding the "Publish" button to the "Project" tab on the PWA Ribbon RRS feed

  • Question

  • Like adding the "Close" button to the "Task" tab, I am looking to add the Publish button under the Project tab so that when a user goes to a Project Detail Page (PDP), the user can publish the project directly within the PDP and the user does not have to go back to the Schedule to Publish the project.

    Here is my XML code:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="">
      <CustomAction Id="Ribbon.ContextualTabs.ProjectDrilldown.Tasks.Update" Location="CommandUI.Ribbon">
            <CommandUIDefinition Location="Ribbon.Tabs.PDP.Home.Project.Controls._children">
                Command="PublishProject" LabelText="Publish" Alt="Publish"
                Image16by16Top="-32" Image16by16Left="-160"
                Image32by32Top="-64" Image32by32Left="-224"
                TemplateAlias="o1" />

    My results:
    1. This code does add the "Publish" button to Project tab
    2. I edit the project in the Project Web App.
    3. When I am in the Schedule page and click on the Project tab, the Publish button works
    4. However, if I go to a Project Detail Pages containing Enterprise Custom Fields, the Publish button is greyed out.

    My question:
    How do I get the Publish button to not be greyed out when going to a PDP page.

    Thank you for your help.




    Friday, June 10, 2011 11:13 PM

All replies

  • I copied you're code and saw that you have forgotten about the Sequence property from the Custom Action tag. I added the next properties to the Custom Action tab and the button became enable, it is not greyed out anymore.
     <CustomAction Id="Ribbon.ContextualTabs.ProjectDrilldown.Tasks.Update"

    Thursday, October 6, 2016 2:12 PM