Skip Navigation

[Resolved] Toolset – relational DB

This support ticket is created 5 years, 5 months ago. 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by philippeS-4 5 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1328129
erdplus-diagram.png

Hi there,

I have been using toolset for a while but without relationship. I am about to build the attach schema of a "DB" within Toolset, this for the management of events, especially to build sponsor list and session programme for the events. Before I do so I just wanted your expert opinion if this is possible within Toolset/WP or not. Am I pushing the envelop too far.

Example each presentation on the programme will be build with data from 5 different joined tables (CPT) :
Session ID, Presentation ID, Time, Abstract Title, Abstract, Speaker Name, Biography, Photo, Company Name, Country

Most of your online documentation talks about parent/child, some grandparent/parent/child. Just not sure if toolset can be treated as "relational DB" with X joined tables.

Just don't want to start on the project and then it a snag only to find out it is not doable.
Thanks for your feedback.
Phil

#1328273

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Philippe,

Toolset does use a relational database because our Types relationships are split amongst multiple tables using joins.

From your screenshot this is beyond the possibility of our Toolset plugins and would require some highly custom code to achieve what you are trying to achieve.

Unless you take the route of using Post relationships to relate your items, which is definitely possible. I would recommend exploring the option of using the Relationships in Types to achieve your goal.

So essentially each of your tables will be created as Post Types and you can relate them through Types.

Otherwise from this then it would be out of the scope of what toolset can do.

Please let me know if this helps.
Thanks,
Shane

#1328307

Hi Shane,
Thanks for your quick reply and maybe my question wasn't clear enough. But yes my intention is to use Post Types (like you said each of my tables become a Post Type) and use the relationship that Types provide. My question was more about the intricacy of building multiple relationship between the different tables (Post Types) and build a View including the data from more than 2 tables (Post Types) as per my schema. Ie. be able to pull the company's name for a programme sessions which is in a Post Types 2 to 3 join further and the speaker which is in another Post Types. I hope this make sense?

Also I see that Toolset has a Many-to-Many type of relationship which in a standard DB world is build through 2 x One-to-Many relationships and a bridging/joining table. By using this type of Relationship I might be able to simplify my schema.
Thanks,
Phil

#1328339

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Philippe,

"build a View including the data from more than 2 tables (Post Types) as per my schema. Ie. be able to pull the company's name for a programme sessions which is in a Post Types 2 to 3 join further and the speaker which is in another Post Types. I hope this make sense?"

Ok so this is possible but you will need to combine and nest multiple views in order to achieve this.

Lets say you have a Company, but you want to display the speakers attached to that company.

If you create a template for the company then you can add a view that is listing out Speakers to that template for the company. However this view must have a query filter for relationships added to it. This relationship is then set to the relationship that was created in Types.

So when you go to a Company page on the frontend you can see the Speakers attached to that company.

I hope this makes sense.

Thanks,
Shane

#1328371

My issue is resolved now. Thank you!