Copied to clipboard

Flag this post as spam?

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


  • Javz 38 posts 141 karma points
    Jun 06, 2020 @ 18:25
    Javz
    0

    Rendering MultiUrlPicker Macro

    Does anyone know how to pass a custom MultiUrlPicker Macro as an IEnumerable? When I get the macro value, I get an encoded JSON array, which I then decode, but whenever I try to deserialze it with an IEnumerable, it come up saying "Error converting value "internal" to type 'Umbraco.Web.Models.LinkType'. Path '[0].type', line 1".

    I get the following as a JSON:

    {
    [
          {
             "caption":"dsfrgregerg",
             "link":1204,
             "newWindow":false,
             "internal":1204,
             "edit":false,
             "isInternal":true,
             "internalName":"Download PDF (English)",
             "internalIcon":"icon-document",
             "type":"internal",
             "title":"dsfrgregerg"
          }
       ]
    }
    

    Any suggestions? Thanks

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies