Conditional visibility
Conditional visibility are a feature that allows you to show elements within dynamic (CMS) lists or dynamic pages only under specific conditions. Using this functionality, you can toggle the visibility of elements based on the state of your content.
Use Cases:
Display a registration button only for ongoing events.
Display a "SALE" badge only for sale items.
Types of Conditional visibility
1. "is set" and "is empty" Conditions:
By setting these conditions, you can toggle the visibility of elements based on whether a specific property is set for a CMS item.
Use Cases:
Display a registration button only for ongoing events.
Display a "SALE" badge only for sale items.
Available Properties:
Reference Property (Single Select)
Text Property
Image Property
Numeric Property
Boolean Property
For Boolean properties, the conditions appear as "is True" or "is False."
2. "is" and "is not" Conditions:
These conditions can only be set for reference properties (single select) and select properties. By setting these conditions, you can display elements when they match (or do not match) a specific value.
Use Cases:
Display a badge only for articles by a specific author.
Show elements for articles that are not in a specific category.
Available Properties:
Reference Property (Single Select)
How to Set Display Conditions
1. Select box
Click on the element inside the CMS list or dynamic page where you want to set the display condition, and open the box settings panel.
2. Select property
Click on the "Set Display Conditions" input field and select the property you want to use for the condition.
3. Choose the desired display condition
If you want to remove the condition, click the "×" next to the condition.
Note: If the Property Does Not Appear in the List of Options
If a reference property is set as a multi-select, it will not be available for display conditions. If the property you want to use doesn't appear in the options, check if the reference property is set to multi-select.
If it is, you will need to delete the property and re-add it as a reference property with a single select.