Display Rules
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 Document image](https://images.archbee.com/bNBm7nPJgXjbjLyfbHNh2/34p_RWIWUpga79cy9-DUe_cc-light.png?format=webp)
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.
Go to the Dynamic Components tab in the platform's bottom left corner.
Select Display Rules
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 Document image](https://images.archbee.com/bNBm7nPJgXjbjLyfbHNh2/Oi-fGlMQsXXSVHDytatWU_dynamic-components-light.png?format=webp)
Edit Your Content Block In the editor, locate the block you want to transform into a display content block.
Access the block menu Hover on the block to reveal the block menu, which is represented by six dots (⋮⋮ block menu icon).
Press the Display Rules button
![Default Block Menu Default Block Menu](https://images.archbee.com/bNBm7nPJgXjbjLyfbHNh2/rp-gYdXw5ZofPlKNH1cCp_ccmenu-light.png?format=webp)
![AI Options Block Menu AI Options Block Menu](https://images.archbee.com/bNBm7nPJgXjbjLyfbHNh2/tGYpvRp_1IQqNACiAA7Kd_ccmenu2-dark.png?format=webp)
Choose the rule set you previously created from the Dynamic Components.
![Document image Document image](https://images.archbee.com/bNBm7nPJgXjbjLyfbHNh2/O0TuHIqbg_mW9x8slT4JN_display-rules-light.png?format=webp)
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.
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:
Navigate to the Dynamic Components tab and create a new rule set with conditions based on purchase history and the current date.
Apply this rule set to the promotional content block in the editor.
Users meeting these conditions will now see the special promotion block during their visit.
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