First up this Sir Trevor package is awesome - Kudos!
I am implementing some custom blocks, which, so far are going pretty well (not a lot of documentation or examples so kinda prodding in the dark!) but was wondering if anyone had any examples of how I could implment a link picker?
This would be a block that had an image, title, text which are all in place but also an optional link field/button that opened the link window similar to what happens in the text editor when clicking on the link icon.
Sir Trevor - Link Picker
Hello,
First up this Sir Trevor package is awesome - Kudos!
I am implementing some custom blocks, which, so far are going pretty well (not a lot of documentation or examples so kinda prodding in the dark!) but was wondering if anyone had any examples of how I could implment a link picker?
This would be a block that had an image, title, text which are all in place but also an optional link field/button that opened the link window similar to what happens in the text editor when clicking on the link icon.
Any help much appreciated!
Cheers,
Kenny
In case anyone else is needing it - I found a way to do this using dialogService.linkPicker
http://umbraco.github.io/Belle/#/api/umbraco.services.dialogService
Cheers
Kenny
Glad you found a way. A look at Pete's experimental Content Picker for ST for Umbraco may also give an idea or two: https://github.com/mindrevolution/SirTrevor-for-Umbraco/blob/master/src/App_Plugins/SirTrevor/blocks/content-picker.js
Marc.
is working on a reply...