---
title: "Framer Help: How to create flexible CMS detail pages"
description: In this guide, we explain how to use conditionals to create flexible CMS detail pages in Framer, enabling dynamic layouts that adapt to your content.
published: "Nov 6, 2026, 11:03 AM UTC"
---

# How to create flexible CMS detail pages

In this guide, we explain how to use conditionals to create flexible CMS detail pages in Framer, enabling dynamic layouts that adapt to your content.

### [Controlling visibility using conditional logic **“**Is Set**”**](#controlling-visibility-using-conditional-logic-“is-set”)

The simplest way to control visibility is with the **“Is Set”** condition. This checks whether an element (e.g., an image) is added to the page. See [New Conditionals and Transforms](../../../updates/new-conditional-transforms). 
- If an image is added, it is displayed.
- If not, it remains hidden.

This approach requires no additional [CMS](../../../dictionary/cms) fields and is ideal for straightforward use cases.

**Other conditional options**

Conditional logic also supports text-based criteria, such as:
1. Equals
2. Doesn’t equal
3. Starts with
4. Doesn’t start with
5. Ends with
6. Doesn’t end with
7. Contains
8. Doesn’t contain

These conditions let you check for specific text matches to control element visibility.

### [Controlling visibility using option fields](#controlling-visibility-using-option-fields)

**Setting up option fields**

To add option fields in your CMS collection:
1. Navigate to the **CMS view**.
2. Click **Edit Fields**.
3. Click the **plus** icon to add a new field.
4. Select **Option** from the dropdown menu.

Create a list of options like “Show 1 Image” or “Show 3 Images” to customize visibility for each collection item.

**Applying option field logic to designs**
1. Select the element whose visibility you want to control.
2. Click the **plus** icon next to the **Visible** option.
3. Select **Set Variable** and choose the **Option** condition.

Key options include:
- **Equal**: Shows the element if it matches the selected option.
- **Doesn’t equal**: Hides the element if it doesn’t match the option.
- **Convert**: Enables control for multiple options and fallback behavior for unmatched cases.

**Example: dynamic layouts with component variants**

If you have a component with two variants—one showing three images and the other showing one—you can use the **Convert** option to select which layout to display for each option in the dropdown.

### [Using toggle fields for simple logic](#using-toggle-fields-for-simple-logic)

For basic Yes/No conditions, use **Toggle fields** to control element visibility, such as showing or hiding an image.

### [Leveraging conditionals and transforms](#leveraging-conditionals-and-transforms)

[Conditionals](../../../dictionary/conditionals) and transforms give you advanced control over CMS detail pages. You can apply conditions to any element with a **plus** icon, creating dynamic layouts tailored to your content. For more advanced techniques, watch this [guide](https://www.youtube.com/watch?v=zEbbD7VCBqU).

\
If you're still experiencing issues, please reach out to us through our [contact page](../../../) for further help.

#### FAQ

### How can I control the visibility of elements on CMS detail pages in Framer?

You can control visibility using conditional logic such as the 'Is Set' condition, which checks whether an element (like an image) is added to the page. If the element is added, it is displayed; if not, it remains hidden. This method requires no additional CMS fields and is ideal for straightforward use cases.

### What types of conditional logic are available for dynamic layouts in Framer CMS?

Framer supports several conditional options for controlling element visibility, including text-based criteria like Equals, Doesn’t equal, Starts with, Doesn’t start with, Ends with, Doesn’t end with, Contains, and Doesn’t contain. These allow you to check for specific text matches to create dynamic layouts tailored to your content.

### How do I use option and toggle fields to customize CMS detail pages in Framer?

To use option fields, add them in your CMS collection by navigating to the CMS view, clicking Edit Fields, and selecting Option from the dropdown. You can then create a list of options (e.g., 'Show 1 Image', 'Show 3 Images') and apply logic to control visibility for each collection item. For simple Yes/No conditions, use Toggle fields to show or hide elements like images. These tools enable you to create flexible, dynamic layouts based on your CMS data.

Updated

2026年9月15日

## Your next idea starts here

Create personal portfolio, Build startup site, `Launch landing page`, Start company blog

[Start without AI](https://framer.com/signup)

---

## Navigation

- [Enterprise](../../../enterprise/)
- [Pricing](../../../pricing)
- [Log in](https://framer.com/login)
- [Sign up](https://www.framer.com/r/signup/)
- [Brand guidelines](../../../brand)
- [Help center](../../)
- [CMS](../../cms/)
- [AI](../../../ai/)
- [Agents](../../../agents/)
- [MCP New](../../../mcp/)
- [Design](../../../design/)
- [Collaborate](../../../collaborate/)
- [CMS](../../../cms/)
- [Hosting](../../../hosting/)
- [Performance](../../../performance/)
- [Analytics](../../../analytics)
- [SEO](../../../seo/)
- [Skills New](../../../skills)
- [Convert](../../../convert/)
- [Publish](../../../publish/)
- [Updates](../../../updates)
- [Templates](https://www.framer.com/community/marketplace/templates/)
- [Components](https://www.framer.com/community/marketplace/components/)
- [Vectors](https://www.framer.com/community/marketplace/vectors/)
- [Plugins](https://www.framer.com/community/marketplace/plugins/)
- [Gallery](https://www.framer.com/community/gallery/)
- [Hire Experts](https://www.framer.com/community/members/)
- [Switch New](../../../switch/)
- [Agencies](../../../agencies/)
- [Startups](../../../startups/)
- [Academy](../../../academy/)
- [Desktop App](../../../downloads/)
- [Developers](../../../developers/)
- [Affiliates](../../../creators)
- [Experts New](../../../expert/apply/)
- [Guides](../../../guides)
- [Blog](../../../blog/)
- [Newsletter](../../../newsletter)
- [Stories](../../../stories/)
- [Skills Index New](../../../skills/index)
- [Students](../../../education/students/)
- [Ambassadors](../../../)
- [Help Articles](../../)
- [Meetups](../../../meetups/)
- [Contact](../../../contact/)
- [Designers](../../../solutions/designers/)
- [Agencies](../../../solutions/agencies/)
- [Marketers](../../../solutions/marketers/)
- [Growth](../../../solutions/growth/)
- [Builders](../../../solutions/builders/)
- [Engineers](../../../solutions/engineers/)
- [Site Teams](../../../solutions/site-teams/)
- [Founders](../../../solutions/founders/)
- [AI website builder](../../../solutions/ai-website-builder/)
- [AI design agent](../../../solutions/ai-designer/)
- [Pro sites](../../../solutions/website-builder/)
- [Landing pages](../../../solutions/landing-pages/)
- [Portfolio maker](../../../solutions/portfolio-website/)
- [UI/UX design](../../../solutions/ui-ux-design/)
- [Figma to HTML](../../../solutions/figma-to-html/)
- [No-code](../../../solutions/no-code-website-builder/)
- [Compare](../../../compare)
- [Webflow](../../../compare/framer-vs-webflow)
- [Figma](../../../compare/framer-vs-figma)
- [Wix](../../../compare/framer-vs-wix)
- [Squarespace](../../../compare/framer-vs-squarespace)
- [WordPress](../../../compare/framer-vs-wordpress)
- [Readymag](../../../compare/framer-vs-readymag)
- [Ceros](../../../compare/framer-vs-ceros)
- [Unbounce](../../../compare/framer-vs-unbounce)
- [Lovable](../../../compare/framer-vs-lovable)
- [Claude Code](../../../compare/framer-vs-claude-code)
- [ChatGPT](../../../compare/framer-vs-chatgpt)
- [Codex](../../../compare/framer-vs-codex)
- [Contentful](../../../compare/framer-vs-contentful)
- [Sanity](../../../compare/framer-vs-sanity)
- [AEM](../../../compare/framer-vs-adobe-experience-manager)
- [Replit](../../../compare/framer-vs-replit)
- [Astro](../../../compare/framer-vs-astro)
- [v0](../../../compare/framer-vs-v0)
- [About New](../../../about)
- [Careers](../../../careers/)
- [Security](../../../legal/security)
- [Brand](../../../brand)
- [Abuse](mailto:abuse@framer.com)
- [Legal](../../../legal/community-terms)
- [Trust](https://app.eu.vanta.com/framer.com/trust/ow67ujg7iav0t6qtd1o6r2)
- [Merch](../../../store)
- [Keyboard](../../../f1)
- [Stack Score](../../../stack-score/)
- [Free domains](../../../domains/)
- [CanvasBench](../../../canvasbench/)
- [State of Sites](https://www.framer.com/state-of-sites-2026/)
- [AEO scanner](../../../aeo)
- [Link Preview](https://www.linkpreview.app/)
- [Checking status](https://www.framerstatus.com/)
