Using the built in link editor with custom property editor
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?
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.
Using the built in link editor with custom property editor
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?
Hello,
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.
Jeroen
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.
Jeroen
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...