Latest videos (YouTube)

The six newest videos from a YouTube channel in a grid. Each card opens the video in a window on your page, played through YouTube's privacy-enhanced player. Reads the videos collection that the YouTube app fills.

contentvideovideosyoutubechannelcollectionrepeaterdynamicgriddialog

About this block

Your newest YouTube videos, read from your Videos collection. Connect your channel on the Apps screen and the cards fill themselves and stay current.

When to use it

  • On your home page or a Videos page, when you post on YouTube and want your site to show it.

What's inside

  • A loop over collections.videos, sorted by date, newest first, showing the latest six (fields: title, date, image, videoId).
  • Each card opens a window with the video, played from youtube-nocookie.com so YouTube sets no tracking cookies until someone presses play.
  • The video loads only when its window opens.

How to customize it

  • To show more videos, change the 6 in the skip line.
  • If your collection has another slug, change collections.videos to match.

Questions

How fresh are the videos?
As fresh as the last sync. The collection re-syncs every hour, and your published pages update after each sync.
Does the video stop when I close the window?
Pressing the close button or Esc closes the window. A video that is already playing can keep playing in the background in some browsers, so pause it first.

Browse other blocks

Same library cards — preview live and grab the code from any block.

View full library