---
title: "Framer Help: Add video components to your CMS pages"
description: Learn how to add videos to CMS detail pages in Framer and control their visibility dynamically using CMS variables and conditionals.
published: "Nov 6, 2026, 11:03 AM UTC"
---

# Add video components to your CMS pages

Learn how to add videos to CMS detail pages in Framer and control their visibility dynamically using CMS variables and conditionals.

You can embed videos from YouTube, Vimeo, or your own hosting into [CMS](../../../dictionary/cms) detail pages, or upload them directly to your CMS. You can also hide empty video spaces for items without a video. See [CMS pages & dynamic content in Framer](../../../academy/lessons/cms-pages-dynamic-content). 

### [Options for adding a video](#options-for-adding-a-video)

You can add videos to a CMS detail page in several ways:
- YouTube component
- Vimeo component
- Self-hosted video
- Uploaded video

### [Adding a YouTube, Vimeo, or self-hosted video](#adding-a-youtube-vimeo-or-self-hosted-video)

This method lets you display videos hosted externally using a video [URL](../../../dictionary/url).
1. Create a **Video URL** field in your CMS collection. Use the **Plain Text** field type.
2. Add video URLs to this field for each CMS item. Leave it blank for items without videos.
3. Insert a YouTube, Vimeo, or Video component on your CMS detail page. In the URL field, click the **+** button, select **Set Variable**, and choose **Video URL** from your CMS fields.

### [Uploading a video directly in the CMS](#uploading-a-video-directly-in-the-cms)

This method stores the video file in your CMS so it can be displayed without external hosting.
1. Add a **File** field to your CMS collection. This supports formats such as MP4.
2. Upload your video file to the CMS. Keep in mind that upload size limits apply.
3. Insert a Video component on your CMS detail page. Set the source to **Upload**, click the **+** button, choose **Set Variable**, and select **File** from your CMS fields.

### [Hiding empty fields](#hiding-empty-fields)

For items without a video, you can use conditionals to keep layouts clean.
1. In the **Styles** panel, go to **Visible > Set Variable > Video URL/File > Is set**.
2. This ensures the video space is only visible when a video file exists.

#### FAQ

### What are the different ways to add videos to a CMS detail page in Framer?

You can add videos to a CMS detail page in several ways: using the YouTube component, Vimeo component, self-hosted video, or by uploading a video directly to your CMS.

### How do I display a video hosted on YouTube, Vimeo, or my own server in a Framer CMS page?

Create a Video URL field in your CMS collection using the Plain Text field type. Add the video URLs to this field for each CMS item. Then, insert a YouTube, Vimeo, or Video component on your CMS detail page. In the URL field, click the + button, select Set Variable, and choose Video URL from your CMS fields.

### How can I hide the video component when a CMS item does not have a video?

In the Styles panel, go to Visible > Set Variable > Video URL/File > Is set. This ensures the video space is only visible when a video file exists for the CMS item.

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/)
