Skip to main content

Studio CMS Display Conditions Example: Showing Images or Text Based on Image Property Status

Learn how to use display conditions in Studio.Design to switch between showing an image or text in dynamic elements, based on whether an image is set in your CMS model's image property for each item.

By using display conditions in Studio.Design, you can show or hide boxes in dynamic elements such as dynamic pages and CMS (dynamic) lists, based on properties set up in Studio CMS.

This article explains how to switch between displaying a thumbnail image and a piece of text in a CMS list, depending on whether an image property has been set.

Screenshot: Example of a CMS list with display conditions set.

Point: What is Studio CMS?

Studio CMS is a content management system (CMS) feature that lets you structure, manage, and update content directly within Studio.Design. By combining models, items, and properties, you can manage frequently updated content—such as blogs and news—all in one place.

For more on how Studio CMS works and how to use it, check out these articles:


Before setting up display conditions, create your article content in Studio CMS and prepare the page structure.

  1. Create CMS article items in the CMS dashboard.

  2. In the design editor, use a dynamic page to create an article detail page linked to the CMS model you created in step 1.

  3. In the design editor, use a CMS list to create an article list linked to the CMS model you created in step 1.

For an overview of the full process—from CMS article creation to publishing—see the article below.​


How to set it up

Step 1. Add a display condition to the image box linked to the image property

  1. Select the image box you want to configure, then open the [Settings] tab on the right side of the screen. If the panel is closed, open the right panel.

  2. In the [Display condition] section, click [Set display condition].

  3. From the dropdown, select the image property linked to the image box.

  4. Choose [is set] as the condition.

  5. Once set, the image box will appear only for items that have the image property filled in.

Step 2. Set the text to display when the image property is not set

  1. Add a text box to the CMS list.

  2. Enter your text, then use the right panel to adjust the font size, text color, background color, spacing, and other design details. If the panel is closed, open the right panel.

    You may also find these help articles useful:

  3. In the [Display condition] section, click [Set display condition].

  4. From the dropdown, select the image property linked to the image box.

  5. Choose [is not] as the condition.

  6. Once set, the text box will appear only for items where the image property has not been filled in.

Step 3. Check that everything is working as expected

  1. Open the live preview and confirm that the image box and text box switch as intended.​

  2. Check the display on your published site.

    Make sure the relevant CMS item's status is set to Published, then publish your site from the publish panel if everything looks good.

    If you're editing a site that's already live, be sure to update your site.


is is not

Did this answer your question?