Skip Navigation

[Resolved] Can’t display link for editing Post Form

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

Problem:
Subscribers cannot see the link to an edit form, even though in Access they are given rights to edit the post type in question.

Solution:
They are able to edit the posts in the backend, but they also need to be given rights to use the edit form (subscribers don't have such rights by default) at Toolset > Access Control > Forms.

This support ticket is created 6 years, 2 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 2.37 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 12 replies, has 2 voices.

Last updated by jiriK-2 6 years, 2 months ago.

Assisted by: Nigel.

Author
Posts
#1101429

Hello,

I'm trying to to make a link for editing a Post Form – I'm following this documentation https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/

I already made my Post Forms for "Teams": hidden link

Here is my Post Form Edit for "Teams" hidden link

Here is my Layout-Template for "Teams" hidden link
Here is the working Backe-End Preview of this Layout with already working editing link hidden link and the linked content Form hidden link

Here is my View for the List of Teams: hidden link with the post-link inside the View's content hidden link

And here is the FrontEnd list of Teams: hidden link

THIS IS WORKING FINE

MY PROBLEM: When I click at one of the Teams then I want to see the Post Form Content with working editing link: hidden link

BUT I see just Post Form Content WITHOUT EDITING LINK: hidden link

I'm trying to solve this problem already a second day and I'm quite lost – I need to solve this issue until tomorrow. So that's why prefer to give you my Site Access. I'm sure that for you it will be easy to find the solution and then to explain it to me.

Many thanks for your help and suggestion.

Best,

Jiri.

#1101637

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Jiri

Did you work this out yourself already?

I visited your site, and went to a team post at hidden link

There is an edit link to edit the post at the top of the page (in red), and clicking it works, takes me to the same URL with the required layout_id URL parameter, and displays the edit form.

#1101713

Dear Nigel,

you're right – this link is working for me and you (as the administrators) BUT it doesn't work for a subscriber role... and I don't know why. As a subscriber (and also as the author of the post), I can't see any editing link... please look at this:

when you log in here: hidden link as the user: softpoint.chef@gmail.com with the password: sEQJtj12g0ZmVQD6ZecAgSr then go at this link: hidden link (it is the list of the teams made by the user softpoint.chef) then click at one of the team's link/post and then you will see that e. g. here hidden link there is no link for editing the post/team.

Many thanks for your help and a suggestion.

Best,

Jiri.

#1102422

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Jiri

the login and password for the subscriber user didn't work, but no matter, the issue is that by default subscribers don't have rights to edit posts (see screenshot).

I expect that if you bring the post type under Access control and grant permission to edit own posts they should then see the edit post links.

#1102431

Hi Nigel,

sorry, the right password is: sEQJtj12g0ZmVQD6ZecAgSrB , the rest (user-name and login link) is the same. Please check it. Thank you.

I was trying to make your suggested solution in Toolset Access: hidden link Role "Návštěvník" mean "Subscriber" – this is a role of the user "softpoint.chef" - the author of these post.

BUT your suggestion unfortunately didn't work for me. You already have also administrator's access – please check it by yourself.

Many thanks again.

Jiri

#1102541

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Jiri

I can see the problem, and I'm trying to get it working on a local test site of mine, and I can't, there seems to be a problem with the toolset-edit-post-link shortcode not observing Access rules.

I found I could only display the edit post link for roles such as author and above, regardless of what I set in Access.

For now you would need to change your set-up so that your users have an author role.

I'm escalating this so that it can investigated further, and I'll let you know what is found.

#1102545

Hi Nigel,

OK, thanks for the information – I'm very glad that you've found the reason and that you are going to find a solution. Thanks again.

Best,

Jiri.

#1103322

Hello Nigel,

I please you to find the solution as soon as possible
because for now my default WordPress registration role is a "subscriber" and I don't know how to set up automatically to "contributor" even though I have these settings: hidden link (Spolupracovník means Contributor).

Even after this default registration role's setting, all new users are set automatically as "subscribers" – so it means that I have to manually change their roles to contributors to be able to edit their "Teams" posts.

I can't continue in this way... I hope you understand it.

Many thanks for your reply and help.

Best,

Jiri.

#1104295

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Jiri

Sorry, I just looked back through this thread to see what I'm missing, and it is something very simple.

The Access rules are working on the backend but not on the frontend forms because... you need to go to Toolset > Access Control > Forms and given permission for subscribers to use the edit form.

#1104402

Hi Nigel,

are you sure? Did you test it on my site?

I did what you have suggested hidden link (Návštěvník means Subscriber)

BUT I still can't edit Team's Post Form as a Subscriber hidden link

Please let me know what to do.

Thank you

Jiri

#1104416

Maybe the problem could be in this automaticaly generated post title?

/**
*Dynamic Post Title
*/
//Create a dynamic post title by the CRED form.
add_action('cred_save_data','func_custom_post_title',10,2);
function func_custom_post_title($post_id,$form_data) {
if ($form_data['id']==447) {
$name = get_post_meta($post_id, 'wpcf-trida', true);
$email = get_post_meta($post_id, 'wpcf-skola-cely-nazev', true);
$title= $name. '-' . $email;
$args = array('ID' => $post_id, 'post_title' => $title);
wp_update_post($args);
}
}

Thanks,

Jiri

#1104444

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-09-10 at 10.49.57.png

Hi Jiri

It looks like because of your screen size there is a horizontal scrollbar and you didn't update the settings required for the form in question, see my screenshot.

#1104453

OK!!!!

Now it is working properly! 🙂

Thank you, best!

Jiri