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