Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anton Gildebrand 49 posts 149 karma points c-trib
    Feb 26, 2015 @ 11:53
    Anton Gildebrand
    0

    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?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Feb 26, 2015 @ 12:02
    Jeroen Breuer
    0

    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

  • Anton Gildebrand 49 posts 149 karma points c-trib
    Feb 26, 2015 @ 12:05
    Anton Gildebrand
    0

    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 :)

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Feb 26, 2015 @ 12:43
    Jeroen Breuer
    0

    Yes it's also using the built in one so hopefully that helps you.

    Jeroen

  • Anton Gildebrand 49 posts 149 karma points c-trib
    Feb 26, 2015 @ 15:17
    Anton Gildebrand
    0

    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. 

Please Sign in or register to post replies

Write your reply to:

Draft