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.
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
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.