How to get the ID of a member when you display its profile?

Hi all,

For each member of my website, I implemented a public page (which can be seen by all members) where I would like to filter a private collection with items belonging to the member which profile I display… to make a long story short :
Member A is connected to the website. Member A wants to have a look to the profile of Member B where a datacollection filtered on Member B is displayed.

For the moment, I implemented the following filter with the member Id of Member B… but I am unable to know where the data is stored on the profile template (warning : I don’t want to display the collection of the current member connected but the collection of the member of which I display the profile…)

I would really appreciate your help.

Many thanks


import wixData from ‘wix-data’ ;
$w . onReady ( function () {
$w ( “#dataset1” ). setFilter ( wixData . filter ()
. eq ( “idmembre” , “a71311c2-2a4d-4d30-923a-928cda9ad437” )