Copied to clipboard

Flag this post as spam?

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


  • Rozelle Elson 10 posts 100 karma points
    May 22, 2017 @ 14:21
    Rozelle Elson
    0

    Hi

    I'm trying to create a partial view for a grid editor that has a image(link) , title, text box and Link on it , I am having issues creating the view for the URL picker , not sure how I can reference the data type in the partial view . The image (media picker ) works . Please can you advise

    Thanks Rozelle

  • Amir Khan 1282 posts 2739 karma points
    May 22, 2017 @ 17:28
    Amir Khan
    0

    Hi Rozelle!

    What's the actual data type you're using? Content Picker? Related Links?

    -Amir

  • Rozelle Elson 10 posts 100 karma points
    May 24, 2017 @ 10:03
    Rozelle Elson
    0

    Hi

    I was trying to use the content picker

    Thanks Rozelle

  • Amir Khan 1282 posts 2739 karma points
    May 25, 2017 @ 19:31
    Amir Khan
    0

    Ah okay. Here's a quick example:

    var contentId = Model.Items.First().GetValue

    Then you can use Umbraco.Content(contentId).Name, Umbraco.Content(contentId).Url, etc

    Does that help?

    -Amir

Please Sign in or register to post replies

Write your reply to:

Draft