Skip Navigation

[Resolved] Now I need help in another situation.

This thread is resolved. Here is a description of the problem and solution.

Problem:

I have 27 districts, which each district has about 4 to 5 churches. I have district leaders leading each district individually and they dont share information among them. and churches with one or two ministers in each church.

The district leader will have oversite (and access to view only the churches in his district and only the churches assigned to that district, and not access the other districts info. how do I accomplish it.

Solution:

it needs just three post types, see details here:

https://toolset.com/forums/topic/now-i-need-help-in-another-situation/#post-1188776

Relevant Documentation:

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

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by acts-1224C 5 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1188708

Thank you Luo. Good information. I have made note of it and it will be helpful. Now I need help in another situation.

when creating a post type, will that post type have just one archive? or view? I ask this because I need implement my membership site and I don't want to create a thousand of post types. this is my scenario and dilema:

I have 27 districts, which each district has about 4 to 5 churches. I have district leaders leading each district individually and they dont share information among them. and churches with one or two ministers in each church.

The district leader will have oversite (and access to view only the churches in his district and only the churches assigned to that district, and not access the other districts info. how do I accomplish it without having to make 27 district post type? Can I assign a particular view to a user? lets say district #1 is assigned to John, and district #22 to Rachel. Can the same be done with templates and archives?

The same with churches. Each church will be accessed by their minister only. how do I do it without the need to create many different church post types? Could the district leaders control just the custom fields assigned to them under the same post type? if so then can I assign several custom fields to a single district leader, and a minister viewing only one custom field which in this case will be their church only, without taking a peak in the other custom post field (church).

Thanks

#1188776

Hello,

There are lots of questions in this thread, I am trying to answer them one by one:
Q1) when creating a post type, will that post type have just one archive? or view?
One post type has one post type archive page, you can setup an Views wordpress archive to customize the archive page, see our document:
https://toolset.com/documentation/user-guides/creating-wordpress-custom-post-archives/

Q2) how do I accomplish it without having to make 27 district post type? Can I assign a particular view to a user? lets say district #1 is assigned to John, and district #22 to Rachel. Can the same be done with templates and archives?

I think we have already talked about the same questions in your previous thread:
https://toolset.com/forums/topic/relational-website-additional-questions/

I assume these:
- one "Leader" can manage only one "district",
- one "district" can connect to only one "Leader",
- one "minister" can manage only one "church",
- one "church" can connect to only one "minister",

In your case, it needs just three post types:
- district (with 27 district posts)
- churches
- Member (Each leaders/minister has only one post in this post type, the post's author is different wordpress user)

And three post type relationships:
1) one-to-many relationship between post type "district" and "church"
So each "district" can connect to multiple "churches" posts, for example:
district A
-- church 1
-- church 2
...

district B
-- church 3
-- church 4
...

2) one-to-one relationship "Leader" between post type "district" and "Member"
So each "district" post can connect to one "Member" post

3) one-to-one relationship "minister" between post type "church" and "Member"
So each "church" post can connect to one "Member" post
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-one-related-item-parent

After user login into your website, redirect him to a wordpress page, in this page, display a post views:
1) Parent post view:
- query "Member" posts
- filter by post's author is current logged -in user
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/
- in section "Loop Editor" ,display below two sections

2) Section "Related district":
The related district post information + A edit "district" form link
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-one-related-item-parent
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/

3) Section "Related church":
Same as above:
The related district post information + A edit "church" form link

So each member user can only edit his related "district" post and "church" post.

#1194360

My issue is resolved now. Thank you!