Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am creating a custom property editor for mega menus, and I'd like to be able to insert and edit links. For that I think it would be nice to use the built in link editor (the one with the controller Umbraco.Dialogs.LinkPickerController). How would i do to open up the LinkPicker from my own custom property type?
There is a Link Picker package: https://our.umbraco.org/projects/backoffice-extensions/link-picker. You can find the source code here: https://github.com/Gibe/Umbraco-Link-Picker.
Hopefully looking at the source code shows how you can do it.
Hi Jeroen and thank you for your quick reply :)
What makes that package different from the built in link picker? Couldn't I just call the built in link picker somehow?
EDIT: saw now that the package you linked to is using the built in. Will look at the source and try to figure it out :)
Yes it's also using the built in one so hopefully that helps you.
It worked :)
It was really simple to implement. For any other wanting to do the same thing, just look at the source of the LinkPicker package. One thing I haven't figured out is how to pass an existing link object if I want to change it.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted