Skip Navigation

[Gelöst] Auto assignment user cred relationship form

This support ticket is created vor 4 Jahren, 10 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 4 Jahren, 10 Monaten.

Assistiert von: Minesh.

Author
Artikel
#1415999

Pat

Hello,

I have 2 postypes (evenement) and (membre) and I have created a multi to multi relationship between them.
Now, I want to insert in the "evenement" page a button to subscribe. So, I need to assign "evenement" as the current page and "membre" as the current loggedin user.

How can I do this?
Regards
Pat

#1416167

Minesh
Supporter

Sprachen: Englisch (English )

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

Hello Pat,

The only way to add the relationship form is we need to hack the relationship form a bit - I'm sharing the following workaroud:

Please check how relationship form is buid here:
=> versteckter Link

And its added as:

[cred-relationship-form form='inscription-evenement'  child_item='$current']

Now, if you submit the form - do you see correct posts are connected:
=> versteckter Link