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 have the following code but it is not displaying any children even though i can see the child nodes in the xml
<xsl:for-each select="umbraco.library:GetXmlNodeById(1263)/* [@isDoc]"> <xsl:value-of select="./link"/> <xsl:value-of select="./title"/> <xsl:value-of select="./image"/> <xsl:value-of select="@nodeName"/> <a href="{./data/link}"> <xsl:variable name="media" select="umbraco.library:GetMedia(data[@alias='image'], 'false')/data" /> <img src="{$media/umbracoFile}" alt="{$media/title}" /> </a> </xsl:for-each>
Hi Wayne,
Are you using the new XML schema (default from v4.5) or the legacy schema? As you have a mish-mash of old & new.
You could try dumping out the XML to see what you are getting back?
<xmp> <xsl:copy-of select="umbraco.library:GetXmlNodeById(1263)" /> </xmp>
Cheers, Lee.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
GetXmlNodeById does not show any children
I have the following code but it is not displaying any children even though i can see the child nodes in the xml
<xsl:for-each select="umbraco.library:GetXmlNodeById(1263)/* [@isDoc]">
<xsl:value-of select="./link"/>
<xsl:value-of select="./title"/>
<xsl:value-of select="./image"/>
<xsl:value-of select="@nodeName"/>
<a href="{./data/link}">
<xsl:variable name="media" select="umbraco.library:GetMedia(data[@alias='image'], 'false')/data" />
<img src="{$media/umbracoFile}" alt="{$media/title}" />
</a>
</xsl:for-each>
Hi Wayne,
Are you using the new XML schema (default from v4.5) or the legacy schema? As you have a mish-mash of old & new.
You could try dumping out the XML to see what you are getting back?
Cheers, Lee.
is working on a reply...