This support ticket is created Il y a 8 années et 5 mois. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Hi, I'm trying work out the best way to build a site. I have 3 types of information that need to interrelate to each other.
Rigs
Services
Projects
A Rig needs to show what Projects they have been used on
A Project needs to show which Rigs and Services were used for the Project
This is my plan so far:
Rigs - cpt
Services - custom taxonomy for Rigs and Projects
Projects - cpt
I'm assuming I have to use a 'many to many' relationship? but I'm not sure about:
1. How to define the 'intermediary object' ?- maybe 'Geotech Usage', since Rigs are 'used' for Projects and Projects 'use' Rigs.
2. Should Projects be a child of Rigs or Rigs a child of Projects?
I'm a little baffled here, any help would be much appreciated. Thanks
Hello. Thank you for contacting the Toolset support.
I'm assuming I have to use a 'many to many' relationship? but I'm not sure about:
1. How to define the 'intermediary object' ?- maybe 'Geotech Usage', since Rigs are 'used' for Projects and Projects 'use' Rigs.
2. Should Projects be a child of Rigs or Rigs a child of Projects?
=> If you use 'intermediary object' lets say 'intermediary object' object CPT name is "ProjectsRigs" then for "ProjectsRigs" CPT Projects and CPT Rigs should be set as Parent. Its well explained with our documentation. Please see our example for bands and events.
=> https://toolset.com/documentation/user-guides/many-to-many-post-relationship/#1