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
hello
I am using umbraco 4.7. and writing following line in my template. but it is not showing image.
Image field is of the type media picker.
<umbraco:Item field="NewsImage" insertTextBefore="<img src="" xslt="concat('<img src="',umbraco.library:GetMedia({0}, false())/umbracoFile, '" />')" xsltDisableEscaping="true" runat="server"></umbraco:Item>
Hi Hetaurhet,
Maybe you could try it here instead.
<umbraco:Item runat="server" field="NewsImage" xslt="concat('<img src="',umbraco.library:GetMedia({0}, true())/umbracoFile, '" />')" xsltDisableEscaping="true"/>
I found the example on the Umbraco Wiki.http://our.umbraco.org/wiki/reference/templates/umbracoitem-element/inline-xslt
Hope it helps you.
/Dennis
hetaurhet,
From looking at your code, your output would be
<img src="<img src="path.to.img" />"
So, either remove the insertTextBefore or change the xslt attribute to only use umbraco.library:GetMedia({0},false())/umbracoFile.
Hope this helps.
Regards,
/Dirk
thanks ....
<umbraco:Itemrunat="server"field="mediaItem"xslt="concat('<img src="',umbraco.library:GetMedia({0}, true())/umbracoFile, '" />')"xsltDisableEscaping="true"/>
this worked out for me.....
I'm glad to hear that you got it working :-), and I'm glad I could help you.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
inline xslt problem in template
hello
I am using umbraco 4.7. and writing following line in my template. but it is not showing image.
Image field is of the type media picker.
<umbraco:Item field="NewsImage" insertTextBefore="<img src="" xslt="concat('<img src="',umbraco.library:GetMedia({0}, false())/umbracoFile, '" />')" xsltDisableEscaping="true" runat="server"></umbraco:Item>
Hi Hetaurhet,
Maybe you could try it here instead.
I found the example on the Umbraco Wiki.
http://our.umbraco.org/wiki/reference/templates/umbracoitem-element/inline-xslt
Hope it helps you.
/Dennis
hetaurhet,
From looking at your code, your output would be
<img src="<img src="path.to.img" />"
So, either remove the insertTextBefore or change the xslt attribute to only use umbraco.library:GetMedia({0},false())/umbracoFile.
Hope this helps.
Regards,
/Dirk
thanks ....
this worked out for me.....
Hi Hetaurhet,
I'm glad to hear that you got it working :-), and I'm glad I could help you.
/Dennis
is working on a reply...