Hi, I’m trying to create a private gallery for each member in the members area. The content would be only visible to each member so no sharing of photos. Is this possible? I cant find a clear guide online to do this. Any help is greatly appreciated. Many thanks
Hi, @Steven_Mckenny !!
Of course, I believe it’s definitely possible. In fact, this is a well-known topic that often comes up in the certification exams used to prove our Wix skills.
To begin with, implementing this does require some code. However, the overall process is simple. You just need to save each image as an item in a collection, linking it with user-specific information—such as a userId , an email address, and the imageUrl .
For example, when a user uploads an image or when an image URL is generated as a result of some process, you store that URL together with the currently logged-in user’s information in the collection.
Then, if you want to display the saved images for each user individually, you filter the collection using the user-specific information to retrieve only the image data associated with that user.
Once you’ve retrieved the relevant image data, you can display it in elements like a repeater that contains imageElement, or a gallery element, so that only the appropriate images are shown to each user.
Thanks for the reply @onemoretime. What is the code I would need to use?
Really appreciate the help.
Many thnaks again.