Skip Navigation

[Resolved] Unable to get content template list when trying to add edit post link

This thread is resolved. Here is a description of the problem and solution.

Problem: I'm trying to insert an edit post link, but instead of being able to select a Content Template, I see a message about creating a Layout.

Solution: When your site uses Toolset Layouts, you must use a Template Layout instead of a Content Template to include your edit post link and edit post Form.

Relevant Documentation: https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/building-forms-for-editing-when-using-layouts/

This support ticket is created 5 years, 4 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.

Our next available supporter will start replying to tickets in about 1.33 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 8 replies, has 2 voices.

Last updated by puneetS-3 5 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1309867

I have a RFG field and I am trying to get "edit post link" for it. I have a view where I have the list for RFG.

I have followed this doc (https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/) to create everything.

I am stuck at this step: "3. Insert link to the Content Template that displays the form"
When I select edit post link the the dialog box always says,

Create a new Layout that will include the editing form. You can start from scratch or copy the template you use to display the content and modify it.

Documentation on Toolset edit links • See all available layouts, or create a new one

It is not listing any kind of list.

#1309893
Screen Shot 2019-08-05 at 2.09.47 PM.png

Hi, if your site uses Toolset Layouts, the process is slightly different. You can find a link to the Layouts documentation in the sidebar. I'm showing a screenshot here, but the link is https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/building-forms-for-editing-when-using-layouts/

Let me know if you have additional questions about that.

#1309911

Thanks for recommending the correct doc. It indeed did the trick.

I was able to produce this short-code.

[toolset-edit-post-link layout_slug='edit-child-_support' target='self']Edit[/toolset-edit-post-link]

But It does not show in the listing? It just seem to ignore that particular short-code.

#1309915

Okay and how is the Edit Post Form added to the edit-child-_support Layout? Is there a Form cell, or did you insert the Form using a shortcode?

#1309917

I added a post form cell inside the layout: Find screenshot: hidden link

#1309921

Okay first you should be sure this Layout is unassigned. Click "Change how this layout is used" in the Layout editor and unselect everything. If that doesn't work, you've added the toolset-edit-post-link shortcode to a View of the RFG, inside the wpv-loop area, correct? Are you testing as an administrator, or as another User type? If you're testing as another User type, have you applied any permissions settings in Toolset Access Control?

#1309933

Access Control was the one with the issue.

One more question I would like to ask.
There are two options
1) Edit Others Custom Post with the Form "Edit Child"
2) Edit Own Custom Post with the Form "Edit Child"

I am able to be edit it when I select option 1. But it doesn't make sense. The RFG posts are all of the proxy user(post created) who is currently logged in. Should this be the case?

#1309955

I am able to be edit it when I select option 1. But it doesn't make sense.
No that does seem strange...Are you sure the RFG post author matches the current logged in User? Even if the parent post was created by the author, someone else could have added the RFG, and each RFG could have a different author. You should be able to verify the author matches the current User by adding the wpv-post-author shortcode next to the Edit Post Link shortcode.

If so, then there's something else going on I don't quite understand. I'll need to take a closer look.

#1312867

My issue is resolved now. Thank you!