Sitecore插入选项规则

Gab*_*bar 3 templates rule-engine insert sitecore options

我有一个场景,我想根据角色添加插入选项.所以想象一下,我在内容树中有一个名为'Components'的文件夹.

我有两个角色叫做 - 贡献者 - 审批者

我有3个模板,我想选择它们以在'Components'文件夹中显示为插入选项. - 模板1 - 模板2 - 模板3

对于贡献者,我只想将模板1显示为插入选项.

对于审批者,我只想将模板2和模板3显示为插入选项.

我怎样才能做到这一点?

我想到了这个场景.将所有模板作为插入选项应用于Components文件夹,然后使用/ sitecore/system/Settings/Rules/Insert Options规则删除基于角色的模板,但它不起作用.

我正在使用Sitecore 8 update 2.

Mar*_*lak 7

完全不要使用Insert Options.

只需创建一个新规则/sitecore/system/Settings/Rules/Insert Options rules并创建2条规则:

  1. when user is in role and item is Components - add this and that insert option
  2. when user is in another role and item is Components - add that and another insert option

我写过一篇关于博客的文章Insert Options Rules- 也许它会对你有所帮助.您可以在此处找到它:Sitecore插入选项规则