Tell us what you are trying to do?
Toolset seems to be the perfect tool for me and I think it could accomplish what I need, that's why I bought it. I know exactly what I want, however, I have som difficulties understanding how to practically DO those things in Toolset.
This is what I've done:
1. Created two post types: Event and Guest and a set of custom fields for each post types.
2. Created a relationship between Event (one) and Guest (many).
3. Created a View that lists Events. Only the logged in author should see their own posts (their Event and their Guests).
4. Created a Post form for (creating) Events. Would be great if I can add Guests WITHIN this form but it's OK to add them after it's been saved too if, after saving Event, it could be redirected to adding Guests.
5. Created a Post form for creating Guests. Works but it's must Event to be set via URL parameter. How?
-I would like to be able to ADD and EDIT the (child) Guests of an Event (from the Event's single view). I really don't know if the Relationship Form should be used for this.
-I would like to setup a view/page (invitation) where a guest (not logged in) can edit their Guest post and also see some data from the Guest post's parent content (Event name etc). It this a new view that incorporates a Guest form?
-I would like to be able to generate content for an email (to each Guest) with contents from it's parent Event.
In my setup Event is actually called Kalas, and Guest is called Gäst (swedish).
Is there any documentation that you are following?
I didn't find a reference project with relationship set up like I need.
Is there a similar example that we can see?
You can get access to my site: getillsammans.usinde.se
Login with: usindejesper and password: #rV%kEVPly3htWxEimvsNGX*
What is the link to your site? getillsammans.usinde.se
Hello,
It is not safe to share your website credentials publicly, I have modified your thread to remove the credentials, and I am checking it in your website, will update this thread if there is anything found
OK, thought this was a private thread? Anyway, it's only a testsite but you could change the password of that account after login.
Hello,
There are lots of questions in this thread, I am trying to answer them one by one:
Q1) I would like to be able to ADD and EDIT the (child) Guests of an Event (from the Event's single view). I really don't know if the Relationship Form should be used for this.
It is not possible within Toolset form(Including the Relationship Form), one form can edit only one post in the same time, and you can not use nested form according to HTML standard:
https://stackoverflow.com/questions/379610/can-you-nest-html-forms
Q2) I would like to setup a view/page (invitation) where a guest (not logged in) can edit their Guest post and also see some data from the Guest post's parent content (Event name etc). It this a new view that incorporates a Guest form?
It will let one guest to be able to edit other guest's posts, it is not safe.
You can create a view, filter by the post author's ID is 0, for example, add a "Post author filter":
Select posts which author's id is set by the View shortcode attribute "author" eg. [wpv-view name="view-name" author="1"]
Then display the view with shortcode :
[wpv-view name="view-name" author="0"]
See our document:
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/
Q3) I would like to be able to generate content for an email (to each Guest) with contents from it's parent Event.
Yes, it is possible to display the related "Event" post information in a Toolset form Email notification, which is for creating "Guest" post, see our document:
Email subject and body
https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/#email-subject-and-body
And document "How to display related posts with Toolset"
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/
Thanks,
Q1: I understand you can't have nested forms but I meant in the saved single Event view. So for example first creating the Event and saving it and then when viewing the saved Event view the children (Guests) and be able to ADD/EDIT a child from there. So basically calling a Guest form but the Guest form needs to have it's parent set to Event somehow.
Q2: I know it's not safe (without a login) but in this case it doesn't matter. I will look into your answer.
Q3: Good. And how do I display the parent (Event) field from a Guest there? Just one example would be nice.
Q1) So basically calling a Guest form but the Guest form needs to have it's parent set to Event somehow.
Yes, you can preset the default value of Toolset form field(parent Event field), for example:
1) Put the Toolset form for creating "Guest" post into a wordpress page,
2) In the single "Event" post, display a link to above page, and pass URL parameter of current "Event" post ID:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-id
The URL parameter name should be the same as your Toolset form settings, shortcode [cred_field], attribute "urlparam":
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field
urlparam. Optional. A URL parameter to set default value. For example, a URL with the additional parameter ?some_param=some_value will set the some_value value to some_param.
Q3) You can display the related "Event" post information, custom fields value in the single "Guest" post, see the document I mentioned above:
"How to display related posts with Toolset"
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/
If you still need assistance for it, please check the credential you provided, the user "usindejesper" is not a valid administrator , I can not check your website settings.