【问题标题】:Sitecore insert options rulesSitecore 插入选项规则
【发布时间】:2016-03-04 17:44:33
【问题描述】:

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

我有两个角色叫 - 贡献者 - 批准人

我有 3 个模板,我想从中选择并显示为“组件”文件夹中的插入选项。 - 模板 1 - 模板 2 - 模板 3

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

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

我怎样才能做到这一点?

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

我正在使用 Sitecore 8 更新 2。

【问题讨论】:

    标签: templates insert sitecore options rule-engine


    【解决方案1】:

    根本不要使用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 Insert Options Rules

    【讨论】:

    • 这就是我想要的。谢谢!
    猜你喜欢
    • 1970-01-01
    • 2012-08-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多