Copied to clipboard

Flag this post as spam?

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


  • Christian Hansen 34 posts 204 karma points
    Apr 17, 2018 @ 11:09
    Christian Hansen
    0

    RJP MultiUrlPicker with LeBlender

    Hello,

    I am trying to use the RJP MultiUrlPicker with LeBlender in a grid editor.

    i have created a grid editor with the LeBlender editor, created a property with datatype "Multi Url Picker" i have inserted the grid editor in my grid and selected a link.

    In my code i have written: @item.GetRawValue("Link") and it gives me following output:

    [ { "id": "1300", "name": "Tilmeldingsliste", "udi": "umb://document/b49a2be9e7db4572853627f93e2e5d1c", "url": "/tilmeldingsliste/", "icon": "icon-user-glasses", "published": true } ]
    

    how can i get the "name" and "url" ?

  • Christian Hansen 34 posts 204 karma points
    Apr 17, 2018 @ 12:42
    Christian Hansen
    0

    Figured it out my self.

    var multiUrlPicker = item.GetValue<dynamic>("Link");
                            if (Enumerable.Any(multiUrlPicker))
                            {
                                foreach (var itemimg in multiUrlPicker)
                                {
                                    <a class="link btn btn-blue" href="@itemimg.url" target="@itemimg.target">@itemimg.name</a>
                                }
                            }
    
  • 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