Skip Navigation

[Resolved] Confused with post relationships

This support ticket is created 4 years 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 4 years ago.

Assisted by: Minesh.

Author
Posts
#2268693
Diagram.png

Hello Toolset Team!
My goal is to create a quotation system that works in the following way.
1-My site has 2 User Roles, Project Owners and Developers. I have created 2 custom post types Projects & Quotes.
2-Project owners will be able to post Projects and Developers to Quotes.
3-Projects should be visible to Everyone
4-Quotes should be visible only to their author and to The Project Owner that posted the Project. Under each Quote default, WP commenting system can be in place so both sides can seal the deal between them

According to the above, what should be the relationship between Projects and Quotes?
Can you guide me with relevant tutorials -threads if exist?

I include a diagram in order to visualize what I want to achieve

#2269523

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

1-My site has 2 User Roles, Project Owners and Developers. I have created 2 custom post types Projects & Quotes.
==>
OK

2-Project owners will be able to post Projects and Developers to Quotes.
==>
Ok, we can manage this. We can create form and post group and using post group we can assign the permission to Projects and Developers.

3-Projects should be visible to Everyone
==>
Ok

4-Quotes should be visible only to their author and to The Project Owner that posted the Project. Under each Quote default, WP commenting system can be in place so both sides can seal the deal between them
==>
We can create a view to display Quotes belongs to logged in user and filter it based on the loggedin user author and we can differentiate based on role. You can activate the comment system for your post type to display the comment.

Actually, its up to you as how you want to manage the relationship between the post types Projects & Quotes. It can be either One-2-Many or Many-2-Many. But based on the description you shared it seems to me One-2-Many post relationship will suit in your case.

Based on the requirement you shared it seems most of the things you can control using Toolset access as Toolset Access works on the Roles and you can assign the your desired permissions to Project Owners and Developers as required.
- https://toolset.com/course-chapter/setting-up-custom-roles-for-site-members/

Before doing anything further I would rather suggest you to create a test site on our free test platform http://www.discover-wp.com site and create a test site using any of our available reference site and with with it to know that you can do using Access, whats possible and what things would workaround.