Will the ribbon toolbar button work on the Tridion Home tab?

I applied the ribbon toolbar button for the sp1 version page of the Tridion version. Now my requirement is to move the feed button to the main page - change the group and make it work. To do this, I changed pageid to "FormatPage" and groupid to "EditGroup". It is included on the main page. To format the RTF field, I used "FaCommand". For a simple text field on the home page, which command should I use? Config The code:

<ext:extension assignid="EditGroup" pageid="HomePage" name="RTF Extensions"> <ext:group/> <ext:apply> <ext:view name="ComponentView"> <ext:control id="ItemToolbar"/> </ext:view> </ext:apply> </ext:extension> <!-- BUTTONS --> <ext:extension pageid="HomePage" groupid="EditGroup" name="Ribbon&lt;br/&gt;Button" assignid="InsertAttribute"> <ext:command>InsertAttribute</ext:command> <ext:title>Ribbon Button</ext:title> <ext:dependencies> <cfg:dependency>InsertAttributeExtension.InsertAttribute.Commands</cfg:dependency> </ext:dependencies> <ext:apply> <ext:view name="ComponentView"> <ext:control id="ItemToolbar"/> </ext:view> </ext:apply> </ext:extension> 

My javascript button:

 Type.registerNamespace("RTFExtension.Commands"); RTFExtension.Commands.IA = function Commands$IA(name) { Type.enableInterface(this, "RTFExtension.Commands.IA"); this.addInterface("Tridion.Cme.Command", [name || "IA"]); this.addInterface("Tridion.Cme.FaCommand", [name || "IA"]); }; 

In the FormatPage and RTF field, I used

 FACommand 

But for a simple text field, which command should I use?
Please help in this matter. Thanks in advance.

+6
source share
1 answer

I usually use firebug to find the PageId of a particular group in the html source of the tridion dialog. The main page really looks right. I would also think that if the value was empty, a button would be displayed here.

I will update this answer soon if this does not help in the short term.

+1
source

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


All Articles