Can I remove the "Download MM component" button from the SDL Tridion 2011 tape

This button causes a lot of problems for my client, as it always uses a predefined schema. I cannot find a way to remove this button using my editor configuration. I did this using other buttons, but these buttons are implemented in some kind of subgroup.

On my personal sandbox machine, I tried to delete the item with comments in the file statement .. /WebUI/Editors/CME/Controls/Toolbars/Tabs/CreateRibbonPage.ascx, shown below:

<c:RibbonSplitButton runat="server" CommandName="NewComponent" Title="<%$ Resources: Tridion.Web.UI.Strings, NewComponent %>" Label="<%$ Resources: Tridion.Web.UI.Strings, NewComponent %>" ID="NewComponentBtn1"> <c:RibbonContextMenuItem runat="server" ID="NewComponentCMI2" Command="NewComponent" Title="<%$ Resources: Tridion.Web.UI.Strings, NewComponent %>" Label="<%$ Resources: Tridion.Web.UI.Strings, NewComponent %>" /> <c:RibbonContextMenuItem runat="server" ID="NewMultimediaComponentCMI2" Command="NewMultimediaComponent" Title="<%$ Resources: Tridion.Web.UI.Strings, NewMultimediaComponent %>" Label="<%$ Resources: Tridion.Web.UI.Strings, NewMultimediaComponent %>" /> <!-- <c:RibbonUploadContextMenuItem runat="server" ID="NewBasicMultimediaComponentCMI2" Command="NewBasicMultimediaComponent" Title="<%$ Resources: Tridion.Web.UI.Strings, NewBasicMultimediaComponent %>" Label="<%$ Resources: Tridion.Web.UI.Strings, NewBasicMultimediaComponent %>" /> --> </c:RibbonSplitButton> 

This seems like the desired result, but I believe that this will probably nullify our support agreement if I did this in a client environment. Can this be done in a supported way, or do I need to hack user interface files like this to achieve my goal?

+6
source share
3 answers

One solution is to create an extension for the NewBasicMultimediaComponent team, which extends the isAvailable and isEnabled methods and returns false for them. In this case, “Upload MM Component” will still be present as an option for the “New Component” button, but it will be disabled.

+7
source

I used css to hide the display of feed items before. Purely, because I could not find a suitable solution.

+6
source

I am adding this answer because I needed to do something similar using the full ribbon toolbar.

I needed to remove the complete Create ribbon toolbar to add a simpler version, and it looks like you can do the removal part by creating a new extension and using this in your extension configuration:

 <?xml version="1.0"?> <Configuration xmlns="http://www.sdltridion.com/2009/GUI/Configuration/Merge" xmlns:cfg="http://www.sdltridion.com/2009/GUI/Configuration" xmlns:ext="http://www.sdltridion.com/2009/GUI/extensions" xmlns:cmenu="http://www.sdltridion.com/2009/GUI/extensions/ContextMenu" xmlns:edt="http://www.sdltridion.com/2009/GUI/Configuration/Merge"> <resources> <cfg:groups /> </resources> <definitionfiles /> <extensions> <ext:editorextensions> <ext:editorextension target="CME"> <ext:editurls /> <ext:listdefinitions /> <ext:itemicons /> <ext:taskbars /> <ext:commands /> <ext:commandextensions /> <ext:contextmenus /> <ext:lists /> <ext:tabpages> </ext:tabpages> <ext:toolbars> </ext:toolbars> <ext:ribbontoolbars> <ext:remove> <ext:extension id="CreatePage"> <ext:apply> <ext:view name="DashboardView"> <ext:control id="DashboardToolbar" /> </ext:view> </ext:apply> </ext:extension> </ext:remove> </ext:ribbontoolbars> <ext:extendedareas /> </ext:editorextension> </ext:editorextensions> <ext:dataextenders /> </extensions> <commands /> <contextmenus /> <localization /> <settings> <dependencies /> <defaultpage /> <editurls /> <listdefinitions /> <theme> <path>/Themes/</path> </theme> <customconfiguration /> </settings> </Configuration> 

To make this work for buttons, you can probably do the same thing (not tested this) by providing the button identifier in the id ext: extension attribute.

+2
source

All Articles