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 trying to select a page field using umbraco.library:GetXmlNodeById. If i type an id e.g. 1454 it works, if i try to pass a macro param say $myId to it nothing displays on my page.
<xsl:param name="scamId" select="/macro/scamId"/> <xsl:value-of select="$scamId"/> <xsl:value-of select="umbraco.library:GetXmlNodeById(1454)/scamHeading"/> <xsl:value-of select="umbraco.library:GetXmlNodeById($scamId)/scamBody"/>
The top statement returns the scamHeading
The bottom statement doesn't return anything
The value of scam id does return the number i just want to use the number from the variable as the parameter for GetXmlNodeById($scamId).
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Cant select node by id using a parameter in xslt
I am trying to select a page field using umbraco.library:GetXmlNodeById. If i type an id e.g. 1454 it works, if i try to pass a macro param say $myId to it nothing displays on my page.
The top statement returns the scamHeading
The bottom statement doesn't return anything
The value of scam id does return the number i just want to use the number from the variable as the parameter for GetXmlNodeById($scamId).
is working on a reply...