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
Hi
I'm trying to do this to use some data from another node on my page, but nothing renders. "infobox1" is the alias of my contentpicker.
Obviously it's my variable that I've got wrong.., I just can't figure out how to do them right.
Any ideas appreciated.
<xsl:variable name="modelID" select="$currentPage/data['infobox1']" /> <xsl:value-of select="$modelID/brandDescription"/>
Best,M;orten
Hi,
Let's take this step by step
What version of Umbraco are you using?
What do you get when you output the following in XSLT
*<xsl:value-of select="$currentPage/infobox1"/>*
Rich
Hmmm... I get the nodeID 1331
(get the feeling that I'm looking at a lot of trees here without seeing the forest)
- using 4.52
M:orten
Hey,
That's good news, you should just need:
<xsl:value-of select="umbraco.library:GetXmlNodeById($currentPage/infobox1)/brandDescription"/>
Amazing!
Thans a lot...
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
set variable with nodeID from content picker
Hi
I'm trying to do this to use some data from another node on my page, but nothing renders.
"infobox1" is the alias of my contentpicker.
Obviously it's my variable that I've got wrong.., I just can't figure out how to do them right.
Any ideas appreciated.
<xsl:variable name="modelID" select="$currentPage/data['infobox1']" />
<xsl:value-of select="$modelID/brandDescription"/>
Best,
M;orten
Hi,
Let's take this step by step
What version of Umbraco are you using?
What do you get when you output the following in XSLT
*<xsl:value-of select="$currentPage/infobox1"/>*
Rich
Hmmm... I get the nodeID 1331
(get the feeling that I'm looking at a lot of trees here without seeing the forest)
- using 4.52
M:orten
Hey,
That's good news, you should just need:
<xsl:value-of select="umbraco.library:GetXmlNodeById($currentPage/infobox1)/brandDescription"/>
Rich
Amazing!
Thans a lot...
M:orten
is working on a reply...