Hi there,
On our page the user creates a camp purely from frontend forms. When they have created their camp a custom template is automatically made with their information in it and they can see their camp under "My Account". I would like if it was possible for them to edit their camp-information in the template IN THE FRONTEND. At NO POINT the user should access the backend. Is it possible to give the users an edit function under "my account" that makes it possible for them to edit the specific camp within the template but without editing the layout of the template?
Yes this is what I want and I followed the guide BUT when I enter the shortcode in the content template to create the edit button, the link is not working and no link text is showing. The content is the one with "final" in it - can you please log in and make it work? Everything else is working fine but the actual link text and visibility of the edit link text.
Lets stick to one question per ticket for now and resolve the problems one by one.
Regarding the issue of you are not able to add the edit link.
Can you please share problem URL where you want to add the Edit link as well as access details.
*** 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.
As I am trying to tell you, you are NOT able to see the Edit button at all right now because it is not showing up even though the shortcode is included like you show in your guide. Please see attached screenshots. I followed your guide step by step but I get a weird result where the shortcode isn't working like it should. Please login and take a look for yourself.
The end goal is to make the edit button show up on these 2 pages when a host is logged in:
1) By the camps on the hosts profile: versteckter Link
2) By the camps in the view on the presentation page we set up for the specific sport: versteckter Link
1) By the camps on the hosts profile: versteckter Link
==>
Do you mean that with the above page, within the section "MINE CAMPS" that lists the camp posts, you want to display the Edit link with each camp item?
Minesh is on vacation, so, if you don't mind, I'll continue with you on this ticket.
I turned out that the content template "Host - edit your camp" was having two post forms inside of it:
- Host - edit your camp
- Host - edit your product
After removing the second form from the content template the link has appeared. Check this screenshot versteckter Link
I hope this helps. Let me know if you still need assistance with this.
Ah okay I see. But when I enter the edit form I can not edit the price and the number of tickets available - that is why I made 2 post forms - 1 for the basic info and 1 for the product part. How do we solve this?
Also a minor detail ( the sidebar should of course be disabled on the edit page )
From what I gathered so far, Products are linked to Camps in a One-to-many relationship. Please correct me if I am wrong, you want to allow the camp authors to create the linked products or edit them from the frontend, right?
Currently, a Toolset Form can only create or edit ONE post. So, you won't be able to update the linked products' information from the same Camp form. You will need to create separate forms and put them in separate content templates. For example, after editing a camp redirect the user to the camp single page, and conditionally display the form(s) to edit the linked products using a view and a form inside of it.
Regarding the sidebar, it seems that the "The7" theme allows you to enable/disable the sidebar only for Pages and Posts, from the configuration page (Theme Options->Sidebar). I'll suggest contacting the theme's support and asking how can we disable the sidebar for a custom post type(Camps).