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'm trying to grab the value of a property on a document by passing in just the nodeID and property alias (I have then used a macro property so I can easily switch the node id)
<xsl:value-of select="$currentPage/ancestor-or-self::node/descendant-or-self::node/node [@id = '[#TheNodeID]']/@StudioImage "/>
Unfortunately I am getting nothing back, but getting no error - So I'm just not sure if I have the right syntax?
just use:
select="//node[@id=$yourid]"
You could try this:
<xsl:value-of select="umbraco.library:GetXmlNodeById(1243)/data [@alias = 'StudioImage']"/>
Thanks for the help :)
Really need to start looking in the Umbraco.Library before posting... DOH!
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
Is My Syntax Right?
I'm trying to grab the value of a property on a document by passing in just the nodeID and property alias (I have then used a macro property so I can easily switch the node id)
Unfortunately I am getting nothing back, but getting no error - So I'm just not sure if I have the right syntax?
just use:
select="//node[@id=$yourid]"
You could try this:
Thanks for the help :)
Really need to start looking in the Umbraco.Library before posting... DOH!
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.