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 gents,
Is it possible that I can get the value of a property from a specific node in the content tree for example i want the value from a property field called tracking code from a document called site settings?
Any help would be greatly received!
Hi Graig,You should be able to access a value of a property from a specific node, by using one of the many library methodes in Umbraco. By using the GetXmlNodeById library method you will get the XML from a specific node.So I think with something like this, you should be able to access the value of the property
<xsl:value-of select="umbraco.library:GetXmlNodeById(1234)/trackingCode "/>
And then you just have to change the id from 1234, to the specific id of the node.If you dont know where to find the node id, you can find it by click on the node, and then under the properties tab.Another way to find the node id is to hover the node, then the id will show in the left down corner in the umbraco backoffice.I hope this can help you further, and make sense./Dennis
Thanks Dennis. Worked a treat :)
Hi Graig,
I´m glad that I could help you,
/Dennis
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
Getting a property value from a specific node
hi gents,
Is it possible that I can get the value of a property from a specific node in the content tree for example i want the value from a property field called tracking code from a document called site settings?
Any help would be greatly received!
Hi Graig,
You should be able to access a value of a property from a specific node, by using one of the many library methodes in Umbraco.
By using the GetXmlNodeById library method you will get the XML from a specific node.
So I think with something like this, you should be able to access the value of the property
<xsl:value-of select="umbraco.library:GetXmlNodeById(1234)/trackingCode "/>
And then you just have to change the id from 1234, to the specific id of the node.
If you dont know where to find the node id, you can find it by click on the node, and then under the properties tab.
Another way to find the node id is to hover the node, then the id will show in the left down corner in the umbraco backoffice.
I hope this can help you further, and make sense.
/Dennis
Thanks Dennis. Worked a treat :)
Hi Graig,
I´m glad that I could help you,
/Dennis
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.