Copied to clipboard

Flag this post as spam?

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


  • christian Boutet 10 posts 100 karma points
    Apr 28, 2019 @ 22:01
    christian Boutet
    0

    Umbraco.MultiUrlPicker as a Macro parameters.

    Anyone know a way to use the Multiple url picker as a macro parameter? I already create some custom propertyeditors, but not sure how to proceed for a more complex type like the Umbraco.MultipleUrlPicker..

    Thanks,

  • Marc Goodson 2157 posts 14431 karma points MVP 9x c-trib
    Apr 30, 2019 @ 08:31
    Marc Goodson
    1

    Hi christian

    There is a IsParameterEditor option you can set on a property editor to make it available as a Macro:

    https://our.umbraco.com/Documentation/Extending/Macro-Parameter-Editors/#isparametereditor

    It's possible therefore to create a package.manifest file that points to the type of editor you want to use as a parameter editor, and set this to be true, along with setting some defaultConfig: that the editor might need to know where to pick from.

    There is an Umbraco Package that assists in the generation of the package.manifest file for the property editor you want to convert:

    https://our.umbraco.com/packages/developer-tools/parameter-editor-generator/

    regards

    Marc

  • christian Boutet 10 posts 100 karma points
    Apr 30, 2019 @ 15:50
    christian Boutet
    0

    Thanks Mark, seems pretty simple finally! i use the generator on 7.x and use the files generated to replicate everything on 8. it work, but seems that the Multiurlpicker that replace the related link in Umbraco 8 is to complex. It work flawlessly... until i try to get the value in my View. Nothing is save in the Model.MacroParameters.

    Maybe i just forgot to do something....

    But thanks again

Please Sign in or register to post replies

Write your reply to:

Draft