Skip Navigation

[Resolved] Can't add a generic template for edit CRED form

This support ticket is created 2 years, 6 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 6 replies, has 2 voices.

Last updated by catherineB 2 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#2355813
edit-form-generic-template.jpg

I'm trying to add a "Edit form" link in my user profile page allowing him/her to edit their files.

1) I created the edit CRED form

2) I created the generic template

3) When I try to add the form in my view, I go to Toolset Form button / Edit post link. Then, when it's time to select a template, I can't select any as none are listed. I only have 2 buttons, once referring me to the tutorial and the second to templates page with all templates listed. So I'm stuck there.

Is there any documentation that you are following?
https://toolset.com/course-lesson/front-end-forms-for-editing-content/

#2356097

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

That is strange. It should work. I would like to know you want to display Edit form link or edit form it self. Can you please share problem URL where you want to display the edit form as well as what template you created and send me admin access details and let me check whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) 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.

#2356397

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've created the following brand new content template and added the post edit form to it: [cred_form form='modification-logement']
=> hidden link

Then, within your view's loop output content template "Loop item in Mes fiches - Logement", I've adjusted the code as given under as well as I've added the post edit link as given under:

[toolset-edit-post-link content_template_slug='ef-container-modification-logement' target='self']Modifier[/toolset-edit-post-link]

=> hidden link

<a href="[wpv-post-url]">[types field="photo" size="thumbnail" align="none" resize="crop"][/types]</a>
[wpv-post-link text="Voir"]
[toolset-edit-post-link content_template_slug='ef-container-modification-logement' target='self']Modifier[/toolset-edit-post-link]

[cred-delete-post type='link' action='trash' onsuccess='self']Supprimer[/cred-delete-post]

Can you please confirm it works as expected: hidden link

#2356431

Hi Minseh,

The link works 🙂
But something changed, as I now can select 2 template if I click on Toolset Form / Other / Edit post link.
Also, the one you've created do not show up, and I can't find it on my Template list.. ? Ghost template 🙂

I tested with my old empty Templage (Modèle - Vide), and the it works too.
What's the difference in adding a specific CRED form in the Generic Template (what you did), and adding a general "Edit Post link" option in a blank template (Modèle - Vide)? Both are rendering the same CRED form.

Otherwise, everything works 🙂

#2356845

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

But something changed, as I now can select 2 template if I click on Toolset Form / Other / Edit post link.
Also, the one you've created do not show up, and I can't find it on my Template list.. ? Ghost template 🙂
==>
Even I'm surprise that the content template I created is not showing, could be something related to slug or something else. If you see now the content template you created you can use that as well there will be no issue using it.

What's the difference in adding a specific CRED form in the Generic Template (what you did), and adding a general "Edit Post link" option in a blank template (Modèle - Vide)? Both are rendering the same CRED form.
==>
The edit forms require a container so you should have a blank content template which holds only the edit form you created which we already did it. You and add edit post link to either view (if you add to view, it will display edit link for every post in view's loop) and if you add it to content template, it will display the edit post link for the current post which is displayed by content template.

Glad to help 🙂

#2359721

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You are welcome to close this ticket 🙂

#2359985

Thanks for the answer, and your help!
Ticket closed 🙂