Using Umbrao 4, how do I display an image within a template? When I select the corresponding field (mediapicker of an uploaded image), it just shows the content-id (or whatever the number represents). How do I get to see the actual image?
[quote=Simm]If you are using the media picker datatype for selecting the image, you can do like this in an xslt-file:
In Umbraco 4 there are easier ways to do this with inline xslt, but I'll leave that to the guys more accustomed to Umbraco 4 than I am.
[/quote]
Thanks for your response. It strikes me as very strange that I have to put in lines of xslt-code to just show an image.
Also, when reading the books and comparing code, I'm in doubt if I should have installed version 3 instead of version 4. In my sample project I see all kind of .Net code, which I don't see in the version-3 code examples.
display image within template
I maybe overlooking something obvious, but still:
Using Umbrao 4, how do I display an image within a template? When I select the corresponding field (mediapicker of an uploaded image), it just shows the content-id (or whatever the number represents). How do I get to see the actual image?
Thanks.
If you are using the media picker datatype for selecting the image, you can do like this in an xslt-file:
[code]
[/code]
In Umbraco 4 there are easier ways to do this with inline xslt, but I'll leave that to the guys more accustomed to Umbraco 4 than I am.
[quote=Simm]If you are using the media picker datatype for selecting the image, you can do like this in an xslt-file:
In Umbraco 4 there are easier ways to do this with inline xslt, but I'll leave that to the guys more accustomed to Umbraco 4 than I am.
[/quote]
Thanks for your response. It strikes me as very strange that I have to put in lines of xslt-code to just show an image.
Also, when reading the books and comparing code, I'm in doubt if I should have installed version 3 instead of version 4. In my sample project I see all kind of .Net code, which I don't see in the version-3 code examples.
is working on a reply...
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.