Skip Navigation

[Resolved] Using Credit To Edit Content

This support ticket is created 5 years, 9 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/Karachi (GMT+05:00)

This topic contains 7 replies, has 2 voices.

Last updated by Waqar 5 years, 9 months ago.

Assisted by: Waqar.

Author
Posts
#1205996

Hey Guys,

I am using Beaver Builder to build a site, and I am having a hard time understanding the "Edit Form" for custom post types...
would you be able to help me better understand it?

I need to create a page where someone can edit the post type they added, I did find the doc's on it stating to use the content templates, but it just does not make sense to me...
Can you please advise?

#1206261

Hey Guys,

Any idea when I might get an indication of a resolution?

#1206270

Hi Marcel,

I'm currently working on this and will share my findings with you soon.

Thank you for your patience.

#1206322

Hi Marcel,

Thank you for waiting, while I reviewed your website's set up in more detail.

First, I noticed that you've assigned a "View Equipment" Beaver Builder content template ( hidden link ) to the single "Equipment" pages, which is not recommended.

As mentioned in the guide on using the Toolset and Beaver Builder plugin together ( https://toolset.com/documentation/user-guides/using-toolset-with-beaver-builder/ ), this isn't a recommended approach and Toolset's own content template should be assigned to single pages, and from inside them, you can choose to design them, through the Beaver Builder.

These steps are outlined in detail at:
https://toolset.com/documentation/user-guides/using-toolset-with-beaver-builder/designing-templates-for-custom-post-types-and-custom-fields-with-beaver-builder/

After you've removed the "View Equipment" Beaver Builder content template from single Equipment pages, you can visit Toolset -> Content Templates and create a new Toolset content template named "Show Equipment" and assign it to single "Equipment" pages, similar to how "Update Equipment" content template is currently set.

Note: The "Update Equipment" content template should be reserved for when the editing form needs to be shown.

After that, in your new "Show Equipment" content template that shows the content of the posts, you can show the link to the edit form, using the shortcode "toolset-edit-post-link".
( ref: https://toolset.com/documentation/user-guides/cred-shortcodes/#toolset-edit-post-link )

Example:


[toolset-edit-post-link content_template_slug='update-equipment' target='self']Edit %%POST_TITLE%%[/toolset-edit-post-link]

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1206343

Hey bud, Sorry for sounding impatient. I was just wondering if it would be a fast response, or something that might take a couple days so I could plan :).

Ok, so now my only question is, is there some way to pull the existing template into your views, I assume saving the page as a template and importing it would be fine?

#1206565

I am busy implementing this, but as a side note, it seems when I select an equipment item to view while building (To visually build), I only ge a "null" response and cannot build...
Which kind of defeats the purpose... Would you be able to assist in getting this resolved?

#1206577

Looks like it works this way... My only question is, Can I use the [toolset-edit-post-link content_template_slug='update-equipment' target='self']Edit %%POST_TITLE%%[/toolset-edit-post-link] shortcode in the view loop for the items aswell?

Also, is there not a shortcode that only output's the url? instead of the whole link with text and a tags and all?

#1207370

Hi Marcel,

Thanks for the update and I apologize for the delay.

>> My only question is, Can I use the
>> [toolset-edit-post-link content_template_slug='update-equipment' target='self']Edit %%POST_TITLE%%[/toolset-edit-post-link]
>> shortcode in the view loop for the items aswell?

- Yes, inside the view's loop, this same shortcode can be used to get the edit link for the current post in the loop.

Tip: If you need a link to edit a specific post, you can also specify it's ID, using the "item" attribute, for example:


[toolset-edit-post-link content_template_slug='update-equipment' target='self' item='123']Edit %%POST_TITLE%%[/toolset-edit-post-link]

Note: You'll replace 123, with the actual post's ID, that you'd like to edit.

>> Also, is there not a shortcode that only output's the url? instead of
>> the whole link with text and a tags and all?

- There is no specific shortcode for generating only the edit URL (without the complete link HTML), but you can use "[wpv-post-url]" shortcode for this.
( ref: https://toolset.com/documentation/user-guides/views-shortcodes/#vf-154469 )

The format of a post edit link is the "link to the single post's page" followed by the "?content-template-id=123", where 123 would be the ID of the content template that holds the editing form.

For example, if your single post's link is:


yourwebsite.com/post-type-slug/posts-slug/

The editing link would be:


yourwebsite.com/post-type-slug/posts-slug/?content-template-id=123

To automatically generate it you can use the shortcode like this:


[wpv-post-url]?content-template-id=123

I hope this helps and for a new question/concern, please open a new ticket.

regards,
Waqar