Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All
I have some troubles showing an image from the media-folder. I have tried with the following code:
-- snip --<td colspan="7"> <umbraco:Item runat="server" field="frontPicture" xslt="concat('<img src=', umbraco.library:GetMedia({0},'true')/data[@alias='umbracoFile'], ' />')" /></td>-- end snip --
... but it only shows the text "<img src=/media/498/front-photo.jpg />" on the screen and no picture :o(
What have I done wrong??
Take a look into the wiki: http://our.umbraco.org/wiki/reference/templates/umbracoitem-element/inline-xslt
The last example should do it...
Thomas
Yes!
Thanks!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Problem showing image from Media
Hi All
I have some troubles showing an image from the media-folder. I have tried with the following code:
-- snip --
<td colspan="7">
<umbraco:Item runat="server" field="frontPicture" xslt="concat('<img src=', umbraco.library:GetMedia({0},'true')/data[@alias='umbracoFile'], ' />')" />
</td>
-- end snip --
... but it only shows the text "<img src=/media/498/front-photo.jpg />" on the screen and no picture :o(
What have I done wrong??
Take a look into the wiki: http://our.umbraco.org/wiki/reference/templates/umbracoitem-element/inline-xslt
The last example should do it...
Thomas
Yes!
Thanks!
is working on a reply...