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
LeBlender and Partial view
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
Hi Rozelle!
What's the actual data type you're using? Content Picker? Related Links?
-Amir
Hi
I was trying to use the content picker
Thanks Rozelle
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
is working on a reply...