Saltar navegación

[Resuelto] Add a link to a relationship form

This support ticket is created hace 3 días, 19 horas. 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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 6 respuestas, tiene 1 mensaje.

Última actualización por Minesh hace 3 días, 17 horas.

Asistido por: Minesh.

Autor
Mensajes
#2818222

Hi

As mentioned in a previous ticket I'm trying to connect a post to another one that are in a many-to-many relationship.

So on the page of a "movie" post I'd like to add a link to a form to connect it (and preselect it) to a "cast and crew" post.

Adding the form on the page as you mentioned works but on my movie page I'd like to have a link that will target to a new page with the form (with a preselected movie where we are coming from) to not have the form(s) on the movie post page.

Can you help me to achieve that ?

#2818225

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As I understand - you want to add link for the relationship form for instance "Connect cast and crew" and display it on single movie post and when user click on that link user should be redirected on a separate page where user can access the relationship form where the current movie from where user click the link should be pre-selected and you can connnect the "cast and crew" post. Is that correct? if yes:

Can you please share problem URL where you want to add the relationshiip form link and on what page you want to display the relationship form and send me admin 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.

#2818231

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

When I try to access the wp-admin it asks me for the authorization access details.

Can you please send me authorization access details.

I have set the next reply to private which means only you and I have access to it.

#2818232

Hi Dinesh, my apologies I forgot this protection...

login is: rb
pass: attractivewolf

#2818239

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

On a page where you added the relationship form:
- enlace oculto

I've removed the form block and instead added the "Fields and Text" block and I've added the relationship form shortcode as given under:

[cred-relationship-form form='add-crew-member' parent_item='[wpv-search-term param='parent_movie_id']']

Now, on add crew memeber page, I can see the movie name is pre-selected:
- enlace oculto

#2818243

Hi Dinesh,

Thanks a lot ! it's exactly what I wanted.

2 last questions:
- how can I retrieve the movie name in order to write it in a h3 tag ?
- is there any possibility to replace the placeholder "search for a post" by a custom text ?

#2818248

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

This is Minesh here 🙂

As per our support policy, we entertain only one question per ticket. This will help other users searching on the forum as well as help us to write correct problem resolution summery for original issue reported.

I'll split the ticket with your new question and you're welcome to mark resolve this ticket.
- https://toolset.com/forums/topic/split-add-a-link-to-a-relationship-form-display-title/
- https://toolset.com/forums/topic/split-add-a-link-to-a-relationship-form-change-the-placeholder-search-for-a-post-on-relationship-form/