i have a custom user role named "organizer" wich can add and edit own events. "events" is a custom post type. I've also add different sites to list the events and include the form etc.
In WordPress i add a page "my events" wich includes a list [wpv-view name="events"] wich works.
There is a child page "add / edit event" with two forms. With the first one users can add a new event. Fine.
Now i want to link in my list [wpv-view name="events"] to the page "add / edit event" to edit with a second form a special event from my loop.
I've test it with [cred-link-form form="208" post="[wpv-post-id]" text="Edit"] (208 is my edit form id) but it only show the event without a form.
Another point: like i've said i have a normal page named "add / edit event" with a toolset form to edit a custom content. So i need a solution for this page without a "Content Template".
Can you please share problem URL of that page where you want to display the form as well as problem URL where I can see the edit post link.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Yes, i know that the repeating field group is a own post type and i need a separate form. That's why i have two forms for my event:
One form to add and edit a event (it's like an event topic) and one form to add and edit the dates for this event.
For example you have an event named "Seminars in Robotic For Beginners and Experts" with title, description images ...
And than you have two dates for beginners with a date range, a title. a maximal number of attendees etc. And three dates for experts and one for additional user and so on (this are my repeating field group).
In this page should be a list of all events by user: hidden link (View 210)
In this page should be the form to add and edit the event: hidden link (Form 200 and 209)
And in this can be the form to add and edit the dates: hidden link (Form 198 and 208)
Can you please share a test user (frontend user) for which I can see few events added and I can see those events on frontend on the following page:
=> hidden link
Currently I can see no events on the above page. Can you please share user/pass that I can use as frontend user where to that user few events are assigned.
If i add the credentials here, every user can see it. Do you have an email? Or you add a new user in the backend for yourself.
Use hidden link for login.
After that you find an event in hidden link
With the Button "Neue Veranstaltungsreihe" you can add a new event. With "Bearbeiten" you can edit this event in a fancybox (but it would be better to show a new page. But this problem i descriped in my first ticket post).
Short problem description: currently it's not possible
- to edit the event in a new page
- to edit the dates (repeating field group)
- to add a new date (repeating field group)
It should be possible for example via a shortcode wich get the datas via URL.
The above link will help user to redirect to the specified page:
=> /meine-veranstaltungen/veranstaltungsreihe-bearbeiten-erstellen/?post_id=[wpv-post-id]
Where as you can see we are passing the post ID dynamically.
Now, With the following page:
=> hidden link
I've added the form to display conditionally as given under to know if there is URL param post_id is not empty then we have to display the edit form otherwise the add form:
If you click on button "Neue Veranstaltungsreihe" it will offer you add form and if you click on "Bearbeiten" link it will offer you the edit form.
Now, can you please tell me on what page you want to add/edit the repeating field group - have you created different page to add/edit repeating field group?
as an link parameter and the conditional statement helped.
Now I would also like to make it possible to add and edit repeating field group for an event.
With the parameter and the conditional function i've created a link to a view. And this view (299) prints a list with all repeating field groups belonging to my post. In these loop i can add my form to edit existsting dates. Is this the right way?
Maybe i'm testing later if i can loop the repeating fields directly in my event form. But i've read that it's not possible to have a form in a form, right?
I expected that if i have a CRED form the repeating fields are also included like in the backend.
New threads created by Minesh and linked to this one are listed below:
Maybe i'm testing later if i can loop the repeating fields directly in my event form. But i've read that it's not possible to have a form in a form, right?
==>
Yes - that's correct.