此按钮会给客户端带来很多问题, 因为它总是使用预定义的 Schema 。 我无法找到方法用编辑器配置来删除此按钮 。 我用其他按钮做了此操作, 但是这些按钮是在某种子组中执行的 。
在我的个人沙箱机上,我试图删除下列./WebUI/Editors/CME/Control/Toolbars/Tabs/CreateRibbonPage.ascx文件摘录中评论的控制:
<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>
这似乎产生了预期的结果,但我认为,如果我在客户环境中这样做,这可能会使我们的支持协议无效。 这是有可能以支持的方式实现的,还是我必须黑进UI这样的文件才能实现我的目标?