/kontent-custom-element-youtube-preview

Custom Element for Kentico Kontent that extracts the video ID from YouTube URLs and provides a preview

Primary LanguageCSSMIT LicenseMIT

⚠️ Deprecation notice

This repository has been archived and is no longer maintained.

YouTube preview custom element for Kentico Kontent

This is a custom element for Kentico Kontent that allows users to add various types of youtube video url, it extracts the video id for your apps and shows the video.

Screenshot of custom element

Setup

  1. Deploy the code to a secure public host
  2. Follow the instructions in the custom element documentation to add the element to a content model.
    • The Hosted code URL is where you deployed to in step 1
    • You can optionally change the size of the preview by passing parameters as directed in the JSON Parameters configuration section of this readme.

JSON Parameters

You can optionally the JSON paramaeters to change the size of the preview:

{
  "width": 800,
  "height": 600
}

Deploying

Netlify has made this easy. If you click the deploy button below, it will guide you through the process of deploying it to Netlify and leave you with a copy of the repository in your GitHub account as well.

Deploy to Netlify

Contributors

Originally contributed by @Simply007