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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...