Giter Site home page Giter Site logo

limbo-works / limbo.umbraco.vimeo Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 323 KB

Vimeo video picker for Umbraco.

Home Page: https://packages.limbo.works/limbo.umbraco.vimeo/

License: MIT License

Batchfile 0.49% JavaScript 9.76% CSS 2.94% Less 3.38% HTML 4.16% C# 79.26%
package umbraco skybrud limbo umbraco-package umbraco-packages umbraco-v9 video video-picker vimeo

limbo.umbraco.vimeo's Introduction

Limbo Vimeo

GitHub license NuGet NuGet Umbraco Marketplace

Limbo.Umbraco.Vimeo is a package for Umbraco 10+ that features a property editor for inserting (via URL or embed code) a Vimeo video. The property editor saves a bit of information about the video, which then will be availble in C#.

The latest version (v2.x) supports Umbraco 10, 11 and 12, whereas older releases (v1.x) supports Umbraco 9.

License: MIT License
Umbraco: Umbraco 10, 11 and 12 (and Umbraco 9)
Target Framework: .NET 6 (and .NET 5)



Installation

Install the package via NuGet - either via the .NET CLI:

dotnet add package Limbo.Umbraco.Vimeo

or the NuGet package manager:

Install-Package Limbo.Umbraco.Vimeo



Property Editor

The package features a property editor that allows users to insert a single Vimeo video - either from the URL of the video or an embed code. The property editor will pull information about the inserted video from the Vimeo API, exposing this information for you in the property value.

image

image

When a valid Vimeo has been inserted on a property, the property exposes an instance of VimeoValue. Details about the video can be accessed via the Details property, and embed information can be accessed through the Embed property:

@using Limbo.Umbraco.Vimeo.Models.Videos
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage

@{

    // Get the media from the media cache
    var media = Umbraco.Media(1234);

    // Get the property value
    var vimeo = media.Value<VimeoValue>("video");

    // Render the video title
    <h1>@vimeo.Details.Title</h1>

    // Render the embed code
    @vimeo.Embed

}



Configuration

{
  "Limbo": {
    "Vimeo": {
      "Credentials": [
        {
          "Key": "8a7a2756-ddc4-486d-978b-a38f116990c1",
          "Name": "MyApp",
          "Description": "A description about the credentials.",
          "AccessToken": "Your access token here"
        }
      ]
    }
  }
}

Key

The key should be a randomly generated GUID which will be used as a unique identifier for the credentials.

Name + Description

The name and description are currently not used, but are meant to be shown in the UI to identify the credentials to the user.

AccessToken

An access token must be specified in order to authenticate your Vimeo user when making requests to th Vimeo API.

You can generate a new access token either by creating a new Vimeo app or using one of your existing apps. For the desired app, you can then generate a new personal access token:

image

An access token may also be obtained through an OAuth 2.0 authentication flow. This is currently not supported directly by this package, but you can see the Skybrud.Social documentation on how to set up an authentication page.

limbo.umbraco.vimeo's People

Contributors

abjerner avatar

Stargazers

 avatar

Watchers

 avatar  avatar

limbo.umbraco.vimeo's Issues

Error on Project Run

Hi @abjerner

Latest Umbraco 10 with the package 2.0.0-alpha001 is throwing an error when trying to run the project

Screenshot 2022-12-01 at 1 11 05 am

Hit me up on Slack if you need me to provide more details.

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.