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
I am creating a macro that will list all the subpages under a parent. For each subpage, I want to also pull the image that is in the template.
Using the code below displays the URL to the image:
<xsl:value-of select="data [@alias = 'myImage']"/>
Using this code below produces an error:
<img src={umbraco.library:GetMedia($currentPage/myImage,'false')/umbracoFile}" />
What is the correct syntax to use?
Figured it out! This is the solution that works:
<img> <xsl:attribute name="src"> <xsl:value-of select="data [@alias = 'myImage']" /> </xsl:attribute> </img>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
XSLT Pull Image from Page Template
I am creating a macro that will list all the subpages under a parent. For each subpage, I want to also pull the image that is in the template.
Using the code below displays the URL to the image:
Using this code below produces an error:
What is the correct syntax to use?
Figured it out! This is the solution that works:
is working on a reply...