Skip Navigation

[Resolved] How to create an "Add to My Library" option using Toolset Types?

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

Author
Posts
#601459

Hi,
I am building a website that will contain a CPT called "Books" for displaying info about books and download links to their pdf version.
then another CPT called "Sermons" that contains audio and video lectured.

I explored the CRED options for user registration..etc

However, I am just wondering if there is a way to build an option (say a button called: Add to my Library) that is added to these CPT, so when registered users click on it, this book or sermon gets added to their profile page?
then when the user visits his profile page, he/she sees a view with the posts they added to their library?
also, they can delete the post from their library if they no longer want to "bookmark" that book?

I saw some alternatives using javascript, but it is not permanent and does not stay if the user changed the computer or cleared the cache..etc

so is there a way to combine the views and CRED to create something like this?
thanks.

#601491

Hi,

I think it is possible within Toolset, for example you can try these:
1) Create a custom post type "My Library", and setup it as child post type of "Books"
2) Create a CRED form for creating child "My Library" post:
https://toolset.com/documentation/user-guides/cred-forms-for-child-content/
3) Create a view list "My Library" posts, filter by:
Select posts with the author the same as the current logged in user.
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/#post-author-is-the-same-as-the-logged-in-user
and display the information of parent "Books" post:
https://toolset.com/documentation/user-guides/displaying-fields-of-parent-pages/
and display a CRED delete link:
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_delete_post_link

#602156

Hi,
thanks a lot for this response.
I think what you said is great. However, when I though about it, it will create thousands of lines in my database, that can ruin it overtime.
I think that I need to search for a "lighter" solution, or the users can book mark the books on the browser or so.

thanks.