CMS: Displaying Collection Content in the Single Video Player

6 min read
Display video content from your CMS (Content Management System) collections in the Single Video Player. You can upload the videos directly to a Video field in your collection, or use a URL field type to embed videos hosted on platforms like YouTube, Vimeo, or Facebook. 

This allows you to showcase and manage dynamic video content efficiently. For example, you could connect a Single Video Player on a dynamic item page to show different videos in each item's version of the page. 
Notes:
  • Learn about the size limitations for videos uploaded to your site. 
  • If the field you connect to the video source is blank, the dafault video uploaded to the player plays instead. You can set up default values for the field to specify a default video to play instead. 

To connect the Single Video Player to the CMS:

Wix Editor
Studio Editor
  1. Go to your editor.
  2. Add a Single Video Player:
    1. Click Add Elements  on the left side of the editor.
    2. Click Video & Music
    3. Click Single Video Players and drag the Video Upload player onto your page. 
Screenshot of adding the Single Video Player in the Wix Editor.
  1. Select the Single Video Player you just added and click the Connect to CMS icon .
  2. Click the Choose a dataset drop-down and select an existing dataset that connects to your collection. Alternatively, click Add a Dataset, then choose the collection you want to connect, give the dataset a name and click Create.
  3. Under Connections, click the drop-downs to connect the video player to the relevant collection fields:
    • Video title connects to: Select the Text, Address, or Tags field you want to use as the video title. Select Add new field if you want to add and connect a new collection field for your video title. 
    • Video source connects to: Select the Video or URL field you want to use as the source of the video. Select Add new field if you want to add and connect a new collection field for your video source. 
Note:
If you choose a URL field type as the video source, the actual title of the embedded video may override the field you chose for your video title.
A screenshot of the CMS connection options available for the player.
  1. (If needed) Adjust the dataset settings
    1. Click Dataset Settings in the Connect Video Player panel on the right. 
    2. Click the permission type next to Permissions to edit your collection's permissions & privacy settings
    3. Click the Dataset mode drop-down and select the relevant option: 
      • Read: Elements that are connected to the dataset can read and display content from your collection. The elements cannot modify the collection content. 
      • Read & Write: Elements that are connected to the dataset can display content from your collection. Input elements can add or edit content in your collection. 
Screenshot of the dataset settings.
  1. Customize your video player's settings, design, and layout. Learn more about the settings here and the design and layout options here.
    Tip: If the video source is a Video field type, you can enable the video title from the layout settings. Click the video player and select the Layout icon . Then enable the Show video title toggle. 
  2. Click Preview at the top right to test your connections.
  3. Click Publish if you are ready to make the changes go live. 

Did this help?

|