Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Craig O'Mahony 363 posts 917 karma points
    Feb 06, 2013 @ 12:36
    Craig O'Mahony
    0

    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!

  • Dennis Aaen 4457 posts 17970 karma points admin hq c-trib
    Feb 06, 2013 @ 13:44
    Dennis Aaen
    101

    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

  • Craig O'Mahony 363 posts 917 karma points
    Feb 07, 2013 @ 11:31
    Craig O'Mahony
    0

    Thanks Dennis. Worked a treat :) 

  • Dennis Aaen 4457 posts 17970 karma points admin hq c-trib
    Feb 07, 2013 @ 12:51
    Dennis Aaen
    0

    Hi Graig,

    I´m glad that I could help you,

    /Dennis

     

  • 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.

Please Sign in or register to post replies