I have a 3 media picker fields in Umbraco which are used for a 3 column layout (3 images, bottom, middle and left). I'm trying to output the selected images using XSLT and all I can see on my page is the image ID and no image. I'm sure I'm missing something simple, but I cannot see it. :(
But have you try to see the documentation for GetMedia (Getting the url of a media file using a mediaPicker). I think this could help you in the right direction.
One of the examples is this one.
Getting the url of a media file using a mediaPicker
Media Picker macro only shows ID and no image
Hi guys,
I have a 3 media picker fields in Umbraco which are used for a 3 column layout (3 images, bottom, middle and left). I'm trying to output the selected images using XSLT and all I can see on my page is the image ID and no image. I'm sure I'm missing something simple, but I cannot see it. :(
Here's my code:
Hi Devin,
What I think you are missing is the /umbracoFile.
Try to change this:
To this
To see if it will solve your problem.
/Dennis
Hi Dennis,
Thanks so much for your reply. I tried that but it just made everything dissapear.
Okay,
Now I see where you print the image out. Have you tried this one as well.
/Dennis
Adding /umbracoFile just removes the ID too. So no image and no ID :( It's really frustrating me.
Hi Devin,
I understand that.
But have you try to see the documentation for GetMedia (Getting the url of a media file using a mediaPicker). I think this could help you in the right direction.
One of the examples is this one.
Getting the url of a media file using a mediaPicker
I think you should take a look on this.
http://our.umbraco.org/wiki/reference/umbracolibrary/getmedia
/Dennis
Actually after I look more in to your code, I think this will do the trick for you. I know I have said it before in this post :-)
/Dennis
This worked perfectly for me!
Cool that you found a solution Devin,
/Dennis
Thanks Dennis :)
is working on a reply...