How to organize groups of ribbon elements?

I would like to change the order of the elements in the tabs section of the house, as well as redo the tabs. for example: several groups are available under the home tab, such as (clipboard, management, editing, publishing, etc.). Each group has its own buttons.

I created several gui extension buttons and I put them together under one group. by default, the gui extension is placed last under this tab in the configuration file.

I would like to place my extension group next to managing or editing a group, and also would like to order a group.

Can someone help me with this?

+6
source share
2 answers

Items under the homegroup were ordered by the product, except for the added extensions. Reordering them is not what by default refers to the available options.

However, adding your own group in that order, and not at the end, is possible. To do this, you can use the insertbefore attribute in the ext:extension element, something like this:

 <ext:ribbontoolbars> <ext:add> <ext:extension assignid="MyGroupID" name="My Name" pageid="HomePage" insertbefore="PublishGroup"> ... </ext:extension> </ext:add> </ext:extension> 

See also my article on the Tridion developer, which explains how to add a group of ribbon elements.

What can help you for all available attributes is to refer to the extension configuration diagram. There are several of them, and you can find them on your CM server in the directory ..\Tridion\web\WebUI\Core\Schemas .

To find identifiers that you can use in the insertbefore attribute, you basically need to check the HTML interface of the user interface. You will see that each div that consists of a group will have an identifier and its identifier names that you can use. This, in turn, allows you to basically place your extension group in front of any existing item.

+6
source

Bart is right, reordering by default is not possible. As an option, you can hide existing groups, create your own new custom groups (which will actually be the same as the originals from CME), and paste them wherever you want. And yes, the "insertbefore" attribute also works for groups! But keep in mind that extensions are applied in the order in which you specified them in the configuration file. For example, if you have two ribbon group extensions in the following order:

 <ext:ribbontoolbars> <ext:add> <ext:extension assignid="MyGroupID1" name="My Name" pageid="HomePage" insertbefore="MyGroupID2"> ... </ext:extension> <ext:extension assignid="MyGroupID2" name="My Name" pageid="HomePage" insertbefore="PublishGroup"> ... </ext:extension> </ext:add> </ext:extension> 

A group with the identifier "MyGroupID1" will be added at the end of "HomePage", because there is no group "MyGroupID2" yet! Just replacing these two extensions will do the trick.

+5
source

All Articles