Hello,
My request concerns a dog breeding website.
I would like to be able to create the genealogy of dogs with Toolset.
My intention was to create a “dogs” database with all the individuals and then, using Toolset relationships, link each dog to its father and mother.
However, Toolset relationships do not allow me to link one dog to another dog within the same CPT.
Do you have any ideas on how to get around this limitation and allow me to create the pedigrees?
Maybe you want to setup a relationship chain like => Country => State => City, for example, Grand Father => Father => Dog with one to many post relationship.
I have a “dog” CPT with all dogs.
I wanted to create two relationships:
1 “father” relationship
1 “mother” relationship
In each of these relationships, I wanted to be able to choose in the “dog” CPT who is the father or mother of a dog.
But Toolset does not allow this (see attached image).
There should be Dog Father and Dog mother post types.
Maybe as you already have "Dogs" post type. You need create "Dog Father" and "Dog Mother" post types and clone all Dog posts using some script of plugin to "Dog Father" and "Dog Mother" post types.
Then later on, you should create one to many post relationship between:
- Dogs and Dog Father
- Dogs and Dog Mother
What a great idea! Why didn't I think of that sooner? And for grandparents, do I duplicate again to create CPT grandfather and grandmother? It's handy if you need to update a record...
I thought relationships were meant to avoid unnecessary duplication of content.
Don't you have a more practical solution to offer?
I thought Toolset made it fairly easy to create just about anything...
What a great idea! Why didn't I think of that sooner? And for grandparents, do I duplicate again to create CPT grandfather and grandmother? It's handy if you need to update a record...
===>
Yes - you should also create CPT for grandfather and grandmother the same way.
I thought relationships were meant to avoid unnecessary duplication of content.
Don't you have a more practical solution to offer?
===>
No, I think this is the best solution I can think of. There is other but then it will need some custom code and will have some limitations as well.
I thought Toolset made it fairly easy to create just about anything...
===>
Yes, it is but its your requirement, you want the self join but there is no self join relationship supported by Toolset.