Copied to clipboard

Flag this post as spam?

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


  • bayshield 50 posts 65 karma points
    Jul 18, 2010 @ 18:07
    bayshield
    0

    Related Nodes

    I am working on a family history site and am looking for some advice on the best way to handle related nodes.

    I have a person docType that contains all the persons details, Name, DOB etc.., what I need now is to find the best way of linking a person with another person whilst indicating the relationship (i.e. Person 1 is the father of person 2).

    Any recommendations?  

  • Matt Brailsford 2958 posts 15629 karma points MVP 7x c-trib
    Jul 18, 2010 @ 19:46
    Matt Brailsford
    2

    Hi Bayshield,

    I'd look into the Relations API. There is a nice explination on Hendys blog

    http://blog.hendyracher.co.uk/umbraco-relation-api/

    There is not real front end to it (though hendy also has a handy package to help http://our.umbraco.org/projects/developer-tools/relation-types), but it allows you to relate multiple nodes together and easily query them to find related nodes.

    I'd probably make a relation type for each kind of relation "Mother", "Father", then query the relation API for related nodes.

    There are also some handy videos on umbraco.tv if you have a subscription:

    http://umbraco.org/documentation/videos/for-developers/relations/introduction-to-relations

    Matt

     

     

  • bayshield 50 posts 65 karma points
    Jul 28, 2010 @ 11:48
    bayshield
    0

    Thanks Matt.  Hendy's post was exactly what I was looking for.

  • 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