EDITOR

Display Rules

7min

This feature only works in combination with a JWT Public Access Control.

A JWT authentication will have to be configured so the conditions defined in the Display Rules are validated or invalidated.



Document image


The Display Rules feature allows you to display specific content blocks based on predefined conditions. This feature provides flexibility in content delivery, ensuring that users see content tailored to their needs and behaviors.

Creating Display Rules Conditions

1

Go to the Dynamic Components tab in the platform's bottom left corner.

2

Select Display Rules

3

Create a New Rule Set:

  • Click on + Create New Rule Set to define conditions for displaying content.
  • Specify your conditions using AND/OR logic to determine when content should be shown. These conditions can be based on various parameters such as user behavior, profile attributes, or other criteria relevant to your platform.
Document image


Applying Display Rules to a Block

1

Edit Your Content Block In the editor, locate the block you want to transform into a display content block.

2

Access the block menu Hover on the block to reveal the block menu, which is represented by six dots (⋮⋮ block menu icon).

3

Press the Display Rules button

Default Block Menu
Default Block Menu

AI Options Block Menu
AI Options Block Menu


Choose the rule set you previously created from the Dynamic Components.

Document image


Once these steps are completed, the selected content block will be transformed into a conditional content block, displaying only when the specified conditions are met.

Example Use Case:

Imagine you want to display a special promotion only to users who have previously purchased from your store and are visiting during a holiday season.

You would:

1

Navigate to the Dynamic Components tab and create a new rule set with conditions based on purchase history and the current date.

2

Apply this rule set to the promotional content block in the editor.

3

Users meeting these conditions will now see the special promotion block during their visit.

JWT Token Integration

The JWT token plays a crucial role in this feature by:

  • Keeping encoded conditions in the URL used for connection.
  • Ensuring that dynamic content can be securely tailored based on the information contained within the token.

When a user accesses the platform, their JWT token is decoded to retrieve the conditions. These conditions are then matched against the predefined rule sets, determining which content blocks should be displayed





🤔
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.