dawoe-umbraco - Dawoe.OEmbedPickerPropertyEditor 13.0.0-beta-117

This package implements a property editor that allows you to easily insert items that support the oEmbed protocol

PM> Install-Package Dawoe.OEmbedPickerPropertyEditor -Version 13.0.0-beta-117 -Source https://www.myget.org/F/dawoe-umbraco/api/v3/index.json

Copy to clipboard

> nuget.exe install Dawoe.OEmbedPickerPropertyEditor -Version 13.0.0-beta-117 -Source https://www.myget.org/F/dawoe-umbraco/api/v3/index.json

Copy to clipboard

> dotnet add package Dawoe.OEmbedPickerPropertyEditor --version 13.0.0-beta-117 --source https://www.myget.org/F/dawoe-umbraco/api/v3/index.json

Copy to clipboard
<PackageReference Include="Dawoe.OEmbedPickerPropertyEditor" Version="13.0.0-beta-117" />
Copy to clipboard
source https://www.myget.org/F/dawoe-umbraco/api/v3/index.json

nuget Dawoe.OEmbedPickerPropertyEditor  ~> 13.0.0-beta-117
Copy to clipboard

> choco install Dawoe.OEmbedPickerPropertyEditor --version 13.0.0-beta-117 --source https://www.myget.org/F/dawoe-umbraco/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "dawoe-umbraco" -SourceLocation "https://www.myget.org/F/dawoe-umbraco/api/v2"
Install-Module -Name "Dawoe.OEmbedPickerPropertyEditor" -RequiredVersion "13.0.0-beta-117" -Repository "dawoe-umbraco" -AllowPreRelease
Copy to clipboard

OEmbed Picker Property Editor for Umbraco

Build status

NuGet Packages Version
Release NuGet download
Pre-release MyGet Pre Release
Umbraco Packages
Release Our Umbraco project page
Pre-release AppVeyor Artifacts

Installation

Package

Download and install the package from : http://our.umbraco.org/projects/backoffice-extensions/oembed-picker-property-editor

Nuget

Install-Package Dawoe.OEmbedPickerPropertyEditor

If you only need the binaries you can install

Install-Package Dawoe.OEmbedPickerPropertyEditor.Core

Usage

CMS Configuration

  1. In Umbraco create a datatype and choose OEmbed Picker as your property editor
  2. If you want to allow embedding of multiple items check the box "Allow Multiple"
  3. Add a property to your documenttype using the newly created datatype

Templates/Views

The package comes with a property value convertor for easy use in your views. The property editor returns a object containing the following properties

  • Url : The url of the embedded item
  • EmbedCode : the embed code
  • Width : the width set by the editor
  • Height : the height set by the editor

For a single embed :

@using Dawoe.OEmbedPickerPropertyEditor.Core.Models;
@Model.Value<OEmbedItem>("propalias").EmbedCode

For multiple embeds :

@using Dawoe.OEmbedPickerPropertyEditor.Core.Models;
@foreach(var item in Model.Value<IEnumerable<OEmbedItem>>("propalias")) 
{
    <div>@item.EmbedCode</div>
}

When you only need the source url of the iframe in the embed code you can do the following

@using Dawoe.OEmbedPickerPropertyEditor.Core.Models
@using Dawoe.OEmbedPickerPropertyEditor.Core.Extensions

@Model.Value<OEmbedItem>("propAlias").GetEmbedSrc()

Changelog

13.0.0

  • Support for Umbraco 12

12.1.0

  • Fixes (#31)
  • Better Delivery API support

12.0.0

  • Support for Umbraco 12

11.0.0

  • Support for Umbraco 11

10.0.0

  • Support for Umbraco 10
  • Converted UI project to razor class library
  • Breaking change : Moved classes in Dawoe.OEmbedPropertyEditor namespace to Dawoe.OEmbedPropertyEditor.Core namespace.

5.1.0

  • Fix for deserializing property value when editor was a different property editor previously. Thanks to @bjarnef for the PR (#23)
  • Added extension method to solve issues like (#20)

5.0.0

  • Support for Umbraco V9
  • Fixes #17

4.3.0

  • Add "edit" functionality to your embeds thanks to @bjarnef (#15)

4.2.0

  • Make classes for configuration public (#4)
  • UI Improvements thanks to @TRexStark (#5)

4.1.0

  • Make compatible with Umbraco 8.1.0 and up

4.0.0

  • V8 support
  • Different return type from value converter
  • Macro Parameter editor support

3.0.0

  • Better support for modelsbuilder. It now returns IHtmlstring or IEnumerable

2.0.3

  • Fix typo

2.0.2

  • Fix issue #3: Mandatory field not working

2.0.1

  • Fix issue #2: Property editor doesn't work when used inside Leblender editor

2.0.0

  • Remove serving of clientside resources through handler. Now files are extracted on first run after installing.

1.0.1

  • Fix issue #1: Conflict with nuPickers

1.0.0

  • Initial release

Setting up a test site

The repository only contains the package code and not test website. However a test site can be set up by running the script SetupTestSite.ps1 from the Utilities folder.

For starting the test site you can run StartTestSite.ps1

To deploy new changes made in the source code you can run UpdateTestSite.ps1.

Contact

Feel free to contact me on twitter : @dawoe21

  • .NETFramework 8.0
    • Dawoe.OEmbedPickerPropertyEditor.Core (>= 13.0.0-beta-117)
    • Dawoe.OEmbedPickerPropertyEditor.UI (>= 13.0.0-beta-117)
    • Umbraco.Cms.Web.BackOffice (>= 13.0.0 && < 14.0.0)
    • Umbraco.Cms.Web.Website (>= 13.0.0 && < 14.0.0)
  • .NETFramework 8.0: 8.0.0.0

Owners

dawoe

Authors

Dave Woestenborghs

Project URL

https://github.com/dawoe/OEmbed-Picker-Property-Editor

License

MIT

Tags

umbraco, umbraco-marketplace

Info

21 total downloads
0 downloads for version 13.0.0-beta-117
Download (5.8 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
13.0.0-beta-117 5.8 KB Tue, 16 Jan 2024 11:58:21 GMT 0
12.1.0-beta-110 5.8 KB Tue, 16 Jan 2024 09:44:37 GMT 0
12.1.0-beta-109 5.8 KB Tue, 16 Jan 2024 09:42:09 GMT 0
12.1.0-beta-104 5.8 KB Fri, 15 Dec 2023 15:22:33 GMT 0
12.1.0-beta-102 5.66 KB Thu, 29 Jun 2023 08:02:07 GMT 0
12.0.0-beta-98 5.67 KB Thu, 29 Jun 2023 07:43:37 GMT 0
12.0.0-beta-97 5.67 KB Thu, 29 Jun 2023 07:39:41 GMT 0
11.1.0-beta-95 5.67 KB Thu, 29 Jun 2023 07:02:24 GMT 0
11.1.0-beta-94 5.65 KB Mon, 05 Dec 2022 07:53:55 GMT 0
11.1.0-beta-93 5.65 KB Fri, 02 Dec 2022 14:50:45 GMT 0
11.0.0-beta-88 5.65 KB Fri, 02 Dec 2022 14:40:02 GMT 0
10.1.0-beta-92 5.64 KB Fri, 02 Dec 2022 14:48:45 GMT 0
10.1.0-beta-87 5.63 KB Mon, 25 Jul 2022 14:32:38 GMT 1
10.1.0-beta-103 5.78 KB Fri, 15 Dec 2023 14:14:24 GMT 1
10.0.0-beta-84 5.62 KB Mon, 25 Jul 2022 14:06:29 GMT 1
10.0.0-beta-82 5.62 KB Mon, 25 Jul 2022 13:46:50 GMT 0
5.2.0-beta-79 7.5 KB Mon, 25 Jul 2022 09:11:41 GMT 0
5.2.0-beta-77 7.5 KB Mon, 25 Jul 2022 08:52:14 GMT 0
5.1.0-beta-74 7.5 KB Mon, 25 Jul 2022 08:39:58 GMT 0
5.1.0-beta-73 7.5 KB Mon, 25 Jul 2022 08:26:01 GMT 0
5.1.0-beta-72 7.5 KB Tue, 12 Jul 2022 07:31:39 GMT 1
5.1.0-beta-70 7.5 KB Thu, 17 Mar 2022 10:04:37 GMT 0
5.0.0-beta-67 7.5 KB Thu, 17 Mar 2022 09:55:05 GMT 0
4.4.0-beta-000052 7.54 KB Fri, 08 Oct 2021 10:39:13 GMT 0
4.4.0-beta-000046 7.53 KB Sat, 23 Jan 2021 08:48:55 GMT 0
4.3.0-beta-000043 7.54 KB Fri, 22 Jan 2021 10:46:49 GMT 0
4.3.0-beta-000042 7.31 KB Fri, 22 Jan 2021 10:37:08 GMT 0
4.3.0-beta-000036 7.31 KB Wed, 11 Nov 2020 06:48:00 GMT 1
4.3.0-beta-000034 7.32 KB Mon, 19 Oct 2020 10:39:00 GMT 0
4.3.0-beta-000033 7.31 KB Sat, 26 Sep 2020 09:51:53 GMT 0
4.2.0-beta-000030 7.31 KB Sat, 26 Sep 2020 07:51:01 GMT 1
4.2.0-beta-000029 7.31 KB Sat, 26 Sep 2020 07:44:15 GMT 0
4.2.0-beta-000024 6.46 KB Mon, 22 Jul 2019 10:16:29 GMT 0
4.1.0-beta-000021 6.45 KB Mon, 22 Jul 2019 10:08:51 GMT 0
4.1.0-beta-000020 6.45 KB Mon, 22 Jul 2019 07:43:05 GMT 3
4.0.0-beta-000015 6.45 KB Thu, 04 Apr 2019 19:10:37 GMT 0
4.0.0-beta-000014 6.47 KB Thu, 04 Apr 2019 19:05:35 GMT 0
4.0.0-beta-000013 6.46 KB Thu, 04 Apr 2019 19:02:35 GMT 1
4.0.0-beta-000012 6.44 KB Thu, 04 Apr 2019 15:23:24 GMT 1
3.0.1-beta-000010 11.81 KB Wed, 27 Jun 2018 12:13:48 GMT 2
3.0.1-beta-000009 11.83 KB Sat, 10 Feb 2018 09:59:42 GMT 1
3.0.1-beta-000008 11.83 KB Sat, 02 Dec 2017 13:20:03 GMT 1
3.0.1-beta-000007 11.82 KB Sat, 02 Dec 2017 13:18:25 GMT 1
3.0.1-beta-000006 11.83 KB Sat, 02 Dec 2017 13:12:05 GMT 2
3.0.0-beta-000003 11.83 KB Sat, 02 Dec 2017 12:42:48 GMT 1
3.0.0-beta-000002 14.12 KB Sat, 02 Dec 2017 11:57:22 GMT 1
3.0.0-beta-000001 14.13 KB Sat, 02 Dec 2017 11:48:47 GMT 1