Skip Navigation

[Resolved] from the vendor display listing create a separate page for editing

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

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 11 replies, has 2 voices.

Last updated by mindyB 5 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1277973

Tell us what you are trying to do?
here is the video explaining it: hidden link

Is there any documentation that you are following?
prior support tickets:

#1278055

Hello,

I think it is possible within Toolset Forms + Views.

For example, you can try these:
1) Create a page "Edit vendor", put the edit form into the new page

2) In a single "vendor" post, setup a link to above page, and pass vender's post ID as URL parameter "vendor-id":
hidden link

3) In the target page "Edit vendor", you can get the URL parameter "vendor-id" value with shortcode [wpv-search-term]
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-search-term
For example:
[wpv-search-term param="vendor-id"]

4) pass it to your form shortcode attribute "post", like this:
[cred-form form="edit-vendor" post=[wpv-search-term param="vendor-id"]]

https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_form
post. Optional. The post ID to edit with this form. If form is an edit form and this is skipped, the ID of the current post in the loop will be used.

#1278315

I don't understand how to do this: (pass vendor's post ID as a URL parameter). Please give an example

(In a single "vendor" post, setup a link to above page, and pass vender's post ID as URL parameter "vendor-id":
hidden link)

#1279207

For example, in a single "vendor" post content, you can setup the link like this:

<a href="<em><u>hidden link</u></em>;">Edit this vendor post in another page</a>
#1279709
Screenshot 2019-06-28 10.59.35.png

This code will diplay 1st image below:
hidden link;
[cred-relationship-form form="edit-attendances-relationship-form" post=[wpv-search-term param="vendor-id"]]

- This was in a loop view - which I can't get to work anymore. How do I use this instead of the image below:

[wpv-post-link] === [cred-relationship-form-link form='edit-attendances-relationship-form' role_items='$fromViews' content_template_slug='edit-attendances']Edit [/cred-relationship-form-link] === [cred-delete-relationship role_items='$fromViews' relationship='attendance']Delete [/cred-delete-relationship]

#1280513

The URL shoud be something like this:
hidden link
please replace 123 with the vendor post ID, if you need more assistance for it, please provide a test site with the same same problem, also point out the problem page URL, where do you want to display the link, thanks.

#1281417

Thank for the details, I am checking it in your website, will update here if there is anything found.

#1281421

I have done below modification in your website:
1) Edit the page "Edit Vendor Attendance":
hidden link
Add the edit post form shortcode as below:

[cred_form form='edit-vendor-listing-post-form'  post='[wpv-search-term param="vendor-id"]']

2) Test it in front-end, for example:
hidden link
click link "Edit this vendor attendance in another page", it redirect me to URL:
hidden link

I can see the edit form, it works fine, please check if it is what you want. thanks

#1281943

These two links now do the same thing:
Edit This Vendor
Edit this vendor attendance in another page

A vendor attendance is the relationship between a vendor and a farmers market.
The "Try This" link is the one to work with...

#1281985

I redid a vendor page - to help clarify
hidden link

Thanks Luo, for being patient.

#1282685
document.JPG

Sorry for the misunderstandings, according to our document:
https://toolset.com/documentation/post-relationships/how-to-build-front-end-forms-for-connecting-posts/editing-existing-connections-between-related-posts/

It is required to use a content template to display the relationship form for editing existed relationships.

In your case, you can disable the sidebar of content template "Edit Attendances", like this:
Edit the content template "Edit Attendances":
hidden link

in section "Document", option "Sidebar Layout" choose: Content (no sidebars).

See screenshot document.JPG

I have tested it in front-end, by these steps:
1) Go to URL:
hidden link

2) Click "Edit" link after text "Huntington Farmers Market", it redirect me to URL:
hidden link
And it display just fine, please check if it is what you want, thanks.

More help:
https://toolset.com/documentation/recommended-themes/using-toolset-with-generatepress-theme/#controlling-generatepress-theme-options-for-templates-and-archives
Controlling GeneratePress theme options for templates and archives

#1283407

Not resolved. Can't get the symmetry of editing a vendor (via a link to another page), and editing (via a link to another page) of relationships on another page working.