I've created a plugin for the grid editor in Umbraco 7.7.7 and inside this plugin it must be possible to create an Umbraco.MediaPicker2. Here is the configuration:
Pick one item
Only images
Disable folder select
I've created a media picker with this configuration named: Media Picker: only images and I'll reuse this inside my plugin.
At this moment I use a simple input-tag where the users must past the URL of the image.
reuse media picker in plugin
I've created a plugin for the grid editor in Umbraco 7.7.7 and inside this plugin it must be possible to create an
Umbraco.MediaPicker2
. Here is the configuration:I've created a media picker with this configuration named:
Media Picker: only images
and I'll reuse this inside my plugin.At this moment I use a simple
input
-tag where the users must past the URL of the image.Here is my code:
JavaScript
Manifest:
Razor
Hi hein,
I think the easiest way is to use the umbOverlay directive in you code. https://our.umbraco.org/apidocs/ui/#/api/umbraco.directives.directive:umbOverlay
This eliminates the use of special datatype
Dave
Hi hein,
You can see a example of it in use in the rte property editor source code.
Controller : https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.controller.js#L282
View : https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.html#L14
Dave
is working on a reply...