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> <ext:extension pageid="HomePage" groupid="EditGroup" name="Ribbon<br/>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.
source share