Work with widget variations and rules

The following procedures describe how to add widget variations and rules in Sitecore Search Customer Engagement Console (CEC). When you add a widget variation to a widget, it has no rules.

Add a widget variation and rule to a widget

To add a widget variation and rule to a widget

  1. In the CEC, on the menu bar, click Widgets.

  2. On the Widgets tab, click the name of the widget you want to open.

  3. On the Widget Variations tab, click Add variation.

  4. Enter a name for this new variation then click Save.

  5. On the Rules tab, click Add Rule then if your implementation has only one entity, go to step 7.

  6. In the top banner, on the right, in the Output entity dropdown, select an entity.

    Note

    Selection change in the Output entity dropdown:

    • displays the number of entity items matching the rule.

    • populates the rule with selected entity items.

    The items in the slots of a new rule do not necessarily reflect those at runtime.

  7. To configure rule, follow a procedure from the following topics:

Add a widget variation rule

To add a widget variation rule:

  1. In the CEC, on the menu bar, click Widgets.

  2. On the Widgets tab, click the name of the widget you want to open.

  3. On the Widget Variations tab, click the name of the widget variation you want to open.

    Note

    If you want to make this variation the default widget variation, turn on the Make this as a default variation switch.

  4. On the Rules tab, click Add Rule then if your implementation has only one entity, go to step 6.

  5. In the top banner, on the right, in the Output entity dropdown, select an entity.

    Note

    Selection change in the Output entity dropdown:

    • displays the number of entity items matching the rule.

    • populates the rule with selected entity items.

    The items in the slots of a new rule do not necessarily reflect those at runtime.

  6. To configure rule, follow a procedure from the following topics:

Edit a widget variation rule

To edit a widget variation rule:

  1. In the CEC, on the menu bar, click Widgets.

  2. On the Widgets tab, click the name of the widget you want to open.

  3. On the Widget Variations tab, click the name of the widget variation you want to open.

    Note

    If you want to make this variation the default widget variation, turn on the Make this as a default variation switch.

  4. On the Rules tab, click the rule you want to edit.

  5. In the top banner, on the right, in the Output entity dropdown, to edit the entity.

    Note

    Selection change in the Output entity dropdown:

    • displays the number of entity items matching the rule.

    • populates the rule with selected entity items.

    The items in the slots of a new rule do not necessarily reflect those at runtime.

  6. To configure rule, follow a procedure from the following topics:

Create or edit a global widget variation rule

To create of edit a global widget variation rule:

  1. In the CEC, on the menu bar, click Global Resources

  2. Click Global Widget.

  3. On the Global Widget Variations tab, click Add Variation and enter an easy to identify name for the new variation.

  4. Turn on the Make this as a default variation switch and click Save.

  5. On the Rules tab, click the rule you want to edit or click Add Rule.

  6. In the top banner, on the right, in the Output entity dropdown, to edit the entity.

    Note

    Selection change in the Output entity dropdown:

    • displays the number of entity items matching the rule.

    • populates the rule with selected entity items.

    The items in the slots of a new rule do not necessarily reflect those at runtime.

  7. To configure rule, follow a procedure from the following topics:

Do you have some feedback for us?

If you have suggestions for improving this article,