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).
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?
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
Thanks Matt. Hendy's post was exactly what I was looking for.
is working on a reply...