So I am an Umbraco newbie and practicing my templating. I want to create my own open graph section which will only display if the user chooses to fill in the data.
So in my partial I have the following (I grabbed and modified the code from RankOne seo plugin)
I have uploaded the image as i am not sure if the code shows correctly!
But this outputs a code value, not the url of the image when using the media picker.
What do i need to do in order to make umbraco output the uploaded image url onto my template?
Media picker url output to template help!
Hi guys,
So I am an Umbraco newbie and practicing my templating. I want to create my own open graph section which will only display if the user chooses to fill in the data.
So in my partial I have the following (I grabbed and modified the code from RankOne seo plugin)
I have uploaded the image as i am not sure if the code shows correctly! But this outputs a code value, not the url of the image when using the media picker.
What do i need to do in order to make umbraco output the uploaded image url onto my template?
Thanks!
I believe the image would be an iPublishedContent, so you could use the following:
Model.Content.GetPropertyValue
is working on a reply...