Members area/ auto generate dataset?

I am a complete novice to this wix api, and I am looking to create a space in my members area that members can go back to and view the files/items they have selected from my site. Basically, if they see something they like, they can click “save” or “add to collection” and it will be added to their own unique compilation.

These files will all be PDF’s and the end goal is to be able to string each pdf together so they have their own personalized ‘book’ of content from my site.

Basically, im looking to replicate the function of the “Fileshare” app that allows users to Favorite a file, so that it appears in their accounts under files>favorites.

So I have two questions

  1. Is it possible/ necessary to create a dataset for this?
  2. Can a dataset be automatically generated when the member accesses the site for the first time?

Thank you in advance!

If you add the Wix Members app to your site, then it will automatically add the Wix Members collection to your site.

You can see this in the Site Structure in the dataset section under Members and it is called Members/PrivateMembersData.

It is a read only collection that only the specific logged in user can read their own data etc.

However, you can get around this with the use of Wix Data Options in the backend.

Youu can see more about the Members collection here.
https://support.wix.com/en/article/corvid-wix-members-privatemembersdata-collection-fields

Also, to have something similar to what you are talking about, see this example here.
https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area
https://support.wix.com/en/article/creating-custom-member-profile-pages
https://support.wix.com/en/article/filtering-database-content-displayed-on-your-page

I’m not quite following this. Is it possible to modify the PrivateMembersData?

I dont need to do that, that collection can be separate. Is it possible to make a unique collection for each user? And can that be automated?

@nlyman4
As stated on the link to the collection itself, it is read only.
https://support.wix.com/en/article/corvid-wix-members-privatemembersdata-collection-fields

Permissions
The PrivateMembersData collection has the following permissions :

  • Read: Site member author

  • Create: None

  • Update: None

  • Delete: None

You cannot change the PrivateMembersData collection permissions.

As for the users own database, you can create one for each member but that would be costly i time and not needed and you it need to be done manually, you can’t automatically generate a database for each new user.

The easiest option would be just to use the one database for all members and simply make sure that when you add their favourite to that database, that you include their userId so that it is linked to them.

That way you can then let them view their own favourites as you can filter by the logged in user, as shown in this support page here.
https://support.wix.com/en/article/filtering-database-content-displayed-on-your-page
https://support.wix.com/en/article/creating-custom-member-profile-pages

There are other previous forum posts that can help you develop what you need as well.
https://www.wix.com/corvid/forum/community-discussion/how-to-embed-a-pdf-on-a-dynamic-page-tutorial
https://www.wix.com/corvid/forum/community-discussion/how-to-display-pdf-from-database-in-table-database-element
https://www.wix.com/corvid/forum/community-discussion/how-can-i-display-pdf-files-in-a-page-item
https://www.wix.com/corvid/forum/community-discussion/sharing-files-with-specific-members
https://www.wix.com/corvid/forum/community-discussion/upload-pdf-files-to-different-member-profiles
https://www.wix.com/corvid/forum/community-discussion/how-to-develop-a-like-button

@givemeawhisky Thanks I have used many of these links already and they’ve given me plenty of guidance.

I was confused by your first comment saying I could get around the permissions of the PrivateMemberData, but none of the Corvid resources were relevant to me for how to “get around” the read only permission.

Logically, it seems to me like each user needs a backend record of everything they have favorited or saved. I don’t want to use the fileshare app because it is not exactly the way I’d like to have the files organized, and that collection is also Read Only.

I guess what I’m after needs to be custom built? Or I need to create a collection for each new member manually…