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
Trying to get media picker field from loop item
Tried umbraco.library:GetMedia(featuredimage, 0) umbraco.library:GetMedia(./featuredimage, 0) umbraco.library:GetMedia(current()/featuredimage, 0)
in xsl:for-each loop, all failed, but I can pull text field data like heading ...
Does anyone know what is the right way please.
Hi Nathan,
Did you try ?
umbraco.library:GetMedia($currentPage/propertyAlias, 0)/umbracoFile
Example how to render image:
<xsl:variable name="media" select="umbraco.library:GetMedia($currentPage/bannerImage, 0)" /> <xsl:if test="$media"> <xsl:variable name="url" select="$media/umbracoFile" /> <xsl:variable name="width" select="$media/umbracoWidth" /> <xsl:variable name="height" select="$media/umbracoHeight" /> <img src="{$url}" width="{$width}" height="{$height}" /> </xsl:if>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get Media Image in XSLT Loop
Trying to get media picker field from loop item
Tried umbraco.library:GetMedia(featuredimage, 0)
umbraco.library:GetMedia(./featuredimage, 0)
umbraco.library:GetMedia(current()/featuredimage, 0)
in xsl:for-each loop, all failed, but I can pull text field data like heading ...
Does anyone know what is the right way please.
Hi Nathan,
Did you try ?
Example how to render image:
is working on a reply...