Skip Navigation

[Resolved] [cred_child_link_form form='506' parent_id='-1' target='_self']

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 3 replies, has 2 voices.

Last updated by Minesh 11 months ago.

Assisted by: Minesh.

Author
Posts
#2672377

a.R

Hi 🙂

I edit a page via toolset forms.

The editing form is NOT part of the page that is being edited. We have a separate editing-page.

How can I add a child element to the page I´m editing?

[cred_child_link_form form='...' parent_id='-1' ... ]

won´t work, because we ARE NOT ON the page I´m editing.

#2672467

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

What child element you want to add and exactly where?

Can you please share as much information as you can with admin access details and problem URLs and let me review and check what could be the possible option available that could help if any.

*** 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.

#2673521

a.R

Hi Minesh 🙂

Let´s say I´m editing parent_post in a toolset form.

Now out of that form, I want to create a child_post (in a toolset form) that should be child of parent_post.

Now in this parent form I created a link by

[cred_child_link_form form='101868' text='...' target='_blank']

and insert the id of parent_post by jquery, what results in

<em><u>hidden link</u></em>

..., which seems good to me (parent_page_id is the correct id of parent_post), but child_post won´t be a child of parent_post.

Can you see what´s going wrong here?

THANK YOU 🙂

#2673785

Minesh
Supporter

Languages: English (English )

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

For instance - if your parent post type slug is "book" then the URL param should be:
parent_book_id

what if you replace parent_page_id with your parent post slug that is: parent_{parent_post_slug}_id
- hidden link

Do you see it working?

#2674145

a.R

Ok, thank you.

I solved this now by adding

[cred_field field='@page_weblink.parent' class='form-control' output='bootstrap' select_text='--- nicht eingestellt ---' urlparam='parent_page_id']

to the link creation form.