如何在Sitecore 8.1中添加带自定义块和按钮的自定义条带

时间:2017-03-08 16:30:10

标签: sitecore sitecore8 sitecore-speak-ui

按照主题 - 我想在新的Strip中创建一个自定义按钮;以前用于Sitecore 7.5的指令(在/ sitecore / content / Applications / Content Editor / Ribbons / Strips等下添加条带项目)在8.1中似乎不再起作用。

任何人都可以链接详细文档吗?

1 个答案:

答案 0 :(得分:1)

首先,右键单击工具栏,看看是否列出了新菜单,如下面的屏幕截图所示。如果没有,请参阅以下步骤:

  1. 导航到/sitecore/content/Applications/Content Editor/Ribbons/Chunks并创建一个新块。模板位于/sitecore/templates/System/Ribbon/Chunk

  2. 在新创建的Chunk中创建您的按钮,该按钮基于模板/sitecore/templates/System/Ribbon/Large Button

  3. 导航至/sitecore/content/Applications/Content Editor/Ribbons/Strips并从模板/sitecore/templates/System/Ribbon/Strip

  4. 创建新的地带
  5. 然后,使用模板/sitecore/templates/System/Reference为您的Chunk添加引用,并在droptree中选择您创建的Chunk

  6. 导航至/sitecore/content/Applications/Content Editor/Ribbons/Ribbons/Default并使用模板/sitecore/templates/System/Reference创建参考,然后从广告系列中选择您的地带。

  7. 刷新页面并查看它是否存在。如果没有,请右键单击工具栏,看看您是否有新的导航列表,如下所示:

  8. enter image description here