Giter VIP home page Giter VIP logo

kontent-custom-element-vimeo-preview's Introduction

Vimeo preview custom element for Kentico Kontent

This Kentico Kontent custom element allows the editor to preview a Vimeo video directly in Kontent's UI. The element can be tested by configuring the following URL for the custom element's "Hosted code URL" field. https://vimeo-preview.netlify.com/

There is also a possibility to adjust the size of the video displayed within the UI. This can easily be done in the custom element's "Parameters {JSON}" field.

The whole set up of the element could look like this.
setup screenshot

With the final output looking like this from the editor's perspective.
Vimeo preview

Setup

  1. Deploy the code to a secure public host
  2. Follow the instructions in the Kentico Kontent documentation to add the element to a content type.
    • The Hosted code URL is where the element has been deplyed to in step 1
    • The size of the preview can be changed as per sample parameters in the JSON Parameters configuration section of this readme.

JSON Parameters

{
    "width": 700,
    "height": 400
}

Saved value

The following is returned by the Deliveri API.

"elements": {
   "vimeo_video": {
     "type": "custom",
     "name": "Vimeo video",
     "value": "183941852"
   }
 }

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

kontent-custom-element-vimeo-preview's People

Contributors

matus-usiak avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.