Copied to clipboard

Flag this post as spam?

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


  • Elad Lachmi 112 posts 144 karma points
    Apr 17, 2011 @ 12:59
    Elad Lachmi
    0

    Access properties on another page

    Hi,

    I was wondering if it is possible to access properties of another document type in xslt,

    and if so, how?

     

    Thank you!

  • Eran Meir 401 posts 543 karma points
    Apr 17, 2011 @ 13:50
    Eran Meir
    0

    you can by umbraco.library:GetXmlNodeById

    http://our.umbraco.org/wiki/reference/umbracolibrary/getxmlnodebyid

    pay attention, the example there is with the old scheme of xslt

  • Kim Andersen 1447 posts 2196 karma points MVP
    Apr 17, 2011 @ 18:15
    Kim Andersen
    1

    Hi Elad

    Like Eran mentions you can take a look at the GetXmlNodeById extension if you want to grab a value from a specific node. But a better solution would probably be to find the node with some xpath. Where in your content structure is the node placed?

    /Kim A

  • Accusoft 58 posts 109 karma points
    May 13, 2011 @ 14:37
    Accusoft
    0

    Hi Kim,

    I'm trying to do something similar.  I don't want to use GetXmlNodeById because it's going to be used in 2 sites and the ID's may not be the same.  The structure of the site, however, will.  I need to get all children of /Content/Products while I'm on /Content/Support.

    Thanks!

  • Kim Andersen 1447 posts 2196 karma points MVP
    May 13, 2011 @ 15:13
    Kim Andersen
    0

    Hi Chris

    I guess that you are searching for the answer in the post you posted here. Answered you in the other post.

    /Kim A

Please Sign in or register to post replies

Write your reply to:

Draft