First of all: This has no connection to Members Area because the pages are totally custom and independent. Page 1 (standard) shows profile photos and page 2 is dynamic to show a chosen members profile information. Another thing to understand is that page 1 isn´t the problem because it relocates the member to the correct page url BUT for some strange reason the displayed information on page 2 belongs to the visitor. I wonder how page 2 can be made to “understand” which members profile photo that was clicked on page 1?
Finally, can I do this completely without code and just with datasets on each page?
To give my problem a simple description = How can you make the dynamik profile page understand which members photo that was clicked on page 1?
Question:
For a long time I have tried to make it possible for members to view other members profile pages but every time they just see their own information even though they click on another members profile photo to be relocated to that members page.
I got an answer from Wix support that it depends on that I have written like this, with others words currentUser.id or _owner (the rest of the code does not have with this specific problem to do so don´t be confused):
I have not got an answer of how I should write instead to display information that is related to the photo-clicked member? What shall I replace currentUser.id with when I want to display another users data instead of the current logged in members own data? If I don´t write a connection to member id the site don´t know which user I want to display so I really do not understand the unsatisfactory answer from the support. This is so terrible hard that I am close to give up and need a detailed (thoroughly) explanation.
Product:
Wix Editor
What are you trying to achieve:
Members shall be able to view another members profile page with a click on that members profile photo (relocation to the profile page).
What have you already tried:
Extremely many alternatives for near 2 years but nothing have worked and not a single expert have been able to explain how I shall do. Very frustrating to say the least because this makes it impossible to make a progress with the rest of my site. I am still stuck because of this problem.
Thanks but how can I make the profile page understand which members profile photo that was clicked on page 1? With other words > what slug is related to the clicked photo? Page 1 knows that but not page 2 and that is the main problem.
And like I wrote in the start, my pages are 100 procent > custom < so none of my members are related to PublicData. This means that I don´t have any use for that database because it only includes a single member (myself).
I see you changed the description a little.
You can use 2 approaches:
Use Wix Members. Then it is advisable to use “Members Area” >> “Profile” as a dynamic page. In this case, you can use the code I gave earlier.
For Page 1, you can use a simple repeater page based on the Wix Members collection. For each profile photo, set up a link to the corresponding “Members Area” >> “Profile” page.
On page 1, each photo must have a unique link. When you click on the photo, you will be redirected to a unique legal address.
If you use a custom collection for users. Then you need to create a dynamic page for this collection. On a dynamic page, you can access the current collection item using dataset (https://dev.wix.com/docs/velo/api-reference/wix-dataset/introduction).
Code on dynamic page:
let itemObj = $w(“#myDataset”).getCurrentItem();
The dynamic page is created a long time ago and what I named as “page 2” in my description above. Can you please write more code than just a single row because I don´t know how to use it and the site you linked to does not explain that either.
I have tried with implementing Members Area but with that you are practically locked to that system so it´s hard to combine it with 100 % custom register, account and profile page. If you don´t agree I beg you to explain how I should do it? In the description about Members Area they describe the posibility to add a “custom” profile page but you also know that it is far from free and independent.