NuGet Packages | Version |
---|---|
Release | |
Pre-release |
Umbraco Packages | |
---|---|
Release | |
Pre-release |
Download and install the package from : http://our.umbraco.org/projects/backoffice-extensions/oembed-picker-property-editor
Install-Package Dawoe.OEmbedPickerPropertyEditor
If you only need the binaries you can install
Install-Package Dawoe.OEmbedPickerPropertyEditor.Core
- In Umbraco create a datatype and choose OEmbed Picker as your property editor
- If you want to allow embedding of multiple items check the box "Allow Multiple"
- Add a property to your documenttype using the newly created datatype
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.Models;
@Model.Value<OEmbedItem>("propalias").EmbedCode
For multiple embeds :
@using Dawoe.OEmbedPickerPropertyEditor.Models;
@foreach(var item in Model.Value<IEnumerable<OEmbedItem>>("propalias"))
{
<div>@item.EmbedCode</div>
}
- V8 support
- Different return type from value converter
- Macro Parameter editor support
- Better support for modelsbuilder. It now returns IHtmlstring or IEnumerable instead of object when generating models. This is can be a potentially breaking changes because the models will be generated differently.
- Fix typo
- Fix issue #3: Mandatory field not working
- Fix issue #2: Property editor doesn't work when used inside Leblender editor
- Remove serving of clientside resources through handler. Now files are extracted on first run after installing.
- Fix issue #1: Conflict with nuPickers
- Initial release
Feel free to contact me on twitter : @dawoe21
If you like this package and use it in your website, consider becoming a patreon to support ongoing maintenance