Add a small ribbon button to PublishItemsGroup

sorry if this has been reviewed. I found how to add a new group of small button ribbon panels, but I cannot find (or figure out) how to add a small button to an existing group of small buttons. I am trying to add a new button to the PublishItemsGroup (in the Publish / Unpublish section to the right of the "Publish Queue" button). If I do this, he will create 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 places a small button to the right of the publication / 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> 

Can I add a small button to this group? or do I need to override and create a whole new group and then hide the existing PublishItemsGroup? thanks ~ Warner

+4
source share
2 answers

No, it’s not possible to add a small button to an existing subgroup (the group has a title at the bottom and they are separated by vertical lines). And yes, you can add a new group using your button in a subgroup and hide the original group.

+5
source

I wrote an explanation on how to use the feed item group at tridiondeveloper.com . This is basically the Tridion user control (.ascx) you need to specify, and you specify the group of ribbon items as an extension in your extension configuration file.

+5
source

Source: https://habr.com/ru/post/1436633/


All Articles