Skip Navigation

[Resolved] Front end logic for posting and adding relationships posts/pages

This support ticket is created 5 years, 8 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 – 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 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#1093995
Schermafbeelding 2018-08-28 om 16.53.05.png

Hi,
We want to allow front end publishiing and edditing Hierarchical post/pages.

Users should be albe to post a Story
Than they should be able to post chapters (of that story).

I have created the relationships (one to many) but i cannot figure how we can create an easy workflow for the users:

1. Create a story
2. add chapters to the story
3. Submit
4. Edit
5. Update

or

1. create chapter
2. add chapter to story (if non created add story to chapter).
3. Submit
4. Edit
5. Update

This should be done by submission forms.
And accessible through the user dashboard (Ultimate Member Dashboard (where custom post types can be added see picture).

Thank you for your considerations.

>>>

Further more I'm looking to find a way to allow Aesop and Editus to execute the editing of the submitted cpt content. The reason for that is the ability of editus to use mobile phones for submission and edittiing, and the promises of Aesop that it will create a Story Map that consists ofall the story chapter map points.

For your information.....The site publish travel stories (Story > chapter1 with map1, chapter2 with map2, etc).
Published from the front end (preferable mobile) by members.
The specific functionality we are looking for is the integration of a list of Travel maps; A Travel map is a map of the specific Travel story made of the chapter map points.

If you have an alternative to achieve the same please advise:

>>>

Please advise,
Regards,
Andric

#1094651

Dear Andric,

Q1) If you have an alternative to achieve the same please advise
Here is my suggestion:
1) You can create two custom post types "story" + "chapter"
Setup one-to-many relationship between post types "story" and "chapter"
https://toolset.com/documentation/post-relationships/

2) In the user dashboard page, setup a post form for creating new "story" post, after user submits the form, redirect him to the user dashboard page

3) In the user dashboard page, display a nested view:
A) Parent view lists "story" posts, filter by post's author is current logged-in user:
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/

In the view's loop, display a another post form for creating child new "chapter" post:
https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/#creating-forms-when-a-parent-post-is-preselected

and display below child view

4) Child post view listing child "chapter" posts, filter by the post type relationship:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/displaying-related-child-posts/#3-creating-a-view-that-lists-the-children-of-the-parent-post

Q2) Further more I'm looking to find a way to allow Aesop and Editus to execute the editing of the submitted cpt content

You can setup custom user roles (Aesop and Editus), and let those users with the specific user role to edit the "story" + "chapter" posts:
https://toolset.com/documentation/user-guides/setting-access-control/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.