I am creating a new membership site. One of the features I'm trying to implement for my paying members is a journaling platform. Here are the requirements I'd like to include:
1. I want to use one global input form that is reusable on numerous pages. This allows users to create journal entries for lessons in courses, or episodes in some of my streaming content. If a user goes back to a page where a journal entry was previously created, s/he should see the original entry and be able to edit if desired.
2. The input form is restricted to users who are logged in, and users can see only their own entries, no-one else. I'm using Thrive Suite for this, so I know I can restrict access to pages using that software. So, I'm sure that I don't need to use Toolset for any further restrictions. Just the same, I want you to know what I'm trying to create.
3. I'd like to be able to create a central journal page (that will also be restricted by Thrive Suite) that shows the list of all entries created by the user, sorted from newest to oldest. In this list, I'd like to include links to the entry details on the page where the entry was first created. Once on the target page, the user should be able to edit the entry if desired.
I'm wondering if you have a recommended approach for creating this kind of structure. Better yet if you have a video tutorial somewhere that shows how to do it.
Thanks,
David
Hello,
1) You can try child post form, for example:
- Setup two post types:
a) lessons
b) journal entry
- Setup one-to-many relationship between "lessons" and "journal entry"
In single "lessons" post, display the form link for creating new child "journal entry" post:
https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/
2) You can follow our document to setup access to above post form, and control which user role can use above post form:
https://toolset.com/course-lesson/controlling-access-to-front-end-forms/
3) In the central journal page, you can display a post view:
- Query "journal entry" posts
- Filter by post author is same as logged-in user:
https://toolset.com/documentation/legacy-features/views-plugin/filtering-views-query-by-author/
- In view's loop, display "journal entry" post information + it's parent "lessons" post information
https://toolset.com/course-lesson/displaying-related-posts/#displaying-one-related-item-parent