Copied to clipboard

Flag this post as spam?

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


  • pikej 27 posts 47 karma points
    Jun 16, 2011 @ 20:19
    pikej
    0

    Accessing content that is on lower levels

    Hi Guys,

    On home page of my website I would like to list urls of articles that are located in a another folder. I know how to access this data from the folder in questions but I do not know how to access is from one level above which is homepage. I am not sure if I explained it well...

    please help!

    kind regards

    pikej

  • pikej 27 posts 47 karma points
    Jun 16, 2011 @ 22:33
    pikej
    0

    I found the solution in one of the razor snippets:

    .Descendants
    Get all the children [deep] of the current node, by collecting the children. 
    .Children will only return the immediate children, whereas Descendants will return all of them (children of children..)

    umbraco rules and razor rocks!

Please Sign in or register to post replies

Write your reply to:

Draft