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...
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.
Continue discussion
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...
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.