Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

add small ribbon button to PublishItemsGroup

Tags:

tridion

sorry if this has been covered. I have found how to add a new ribbon toolbar group of small buttons, but I can't seem to find (or figure out) how to add a small button to an existing group of small buttons. I'm trying to add a new button to the PublishItemsGroup (under Publish/Unpublish to the right of Publishing Queue button). If I do this, it creates a whole new group:

   <ext:ribbontoolbars>
      <ext:add>
        <ext:extension pageid="HomePage" 
                       groupid="PublishItemsGroup" 
                       name="Expire" 
                       assignid="ext_expireWorkflow_Btn">
          <ext:command>StartWorkflowExpiration</ext:command>
          <ext:title>Expire</ext:title>
                        <ext:issmallbutton>true</ext:issmallbutton>
          <ext:dependencies>
            <cfg:dependency>mycompany.Resources.Workflow.StartWorkflowExpiration</cfg:dependency>
          </ext:dependencies>
          <ext:apply>
            <ext:view name="DashboardView">
              <ext:control id="DashboardToolbar"/>
            </ext:view>
          </ext:apply>
        </ext:extension>
      </ext:add>
    </ext:ribbontoolbars>

but, if I just use "PublishGroup" then it puts the small button to the right of Publish/Unpublish (not under)

<ext:ribbontoolbars>
  <ext:add>
    <ext:extension pageid="HomePage" 
                   groupid="PublishGroup" 
                   name="Expire" 
                   assignid="ext_expireWorkflow_Btn">
      <ext:command>StartWorkflowExpiration</ext:command>
      <ext:title>Expire</ext:title>
                        <ext:issmallbutton>true</ext:issmallbutton>
      <ext:dependencies>
        <cfg:dependency>mycompany.Resources.Workflow.StartWorkflowExpiration</cfg:dependency>
      </ext:dependencies>
      <ext:apply>
        <ext:view name="DashboardView">
          <ext:control id="DashboardToolbar"/>
        </ext:view>
      </ext:apply>
    </ext:extension>
  </ext:add>
</ext:ribbontoolbars>

Is it possible to add a small button to that group? or do I have to override and create a whole new group and then hide the existing PublishItemsGroup? thanks ~Warner

like image 899
Warner Soditus Avatar asked Dec 27 '22 17:12

Warner Soditus


2 Answers

No, it's not possible to add small button to existing sub-group (group has title on the bottom and they are separated with vertical lines). And yes, you can add new group with your button in the sub-group and hide the original group.

like image 135
Boris Ponomarenko Avatar answered Jan 28 '23 18:01

Boris Ponomarenko


I've written an explanation on how to use the Ribbon Item Group on tridiondeveloper.com. It is basically a Tridion User Control (.ascx) that you need to specify, and you specify the Ribbon Items Group as an extension in your extension Configuration file.

like image 35
Bart Koopman Avatar answered Jan 28 '23 19:01

Bart Koopman