Hey guys!!
I have a “recipes” dataset that shows the members’ recipes.
On the dynamic page of each recipe, I want to show the name and profile picture of the member who posted the recipe.
The dataset containing the profile picture and member name is the “privateMembersData” dataset.
I’m new to velo wix and I want to learn a lot but I have no idea how to solve this.
2 Likes
How and what to do, to get your functionality?
- You will have a DATABASE where you store all your data about recipes.
- You can use the USER-ID-DBfield, to recognize the owner of the created recipe.
- So now all you have to do ist to make first a query on that DB (filtering data by user-ID) and get all results, related to a specific user.
- After you have got your query-results, you can use them on your dynamic page.
You have the opertunity to use → “PublicMembers-Data” where you can find Nickname and Profile-pic. Do a second query to get also the 2-values.
Use it to get your wished values, it is more simple then trying to get data out of “Private-Members-Data”.
@russian-dima thanks for trying to help me!
I have some doubts:
•where do I find this USER-ID-DB field in my “recipes” dataset? is it the _owner field?
• How do I filter to get user-related recipes?
Hmmm i am almost sure, there was more stuff provided by me in my post 
However…
BTW: Next time you should perhaps not delete parts of my posts, thanks!
@russian-dima I didn’t delete any of your posts. I need help to resolve this issue and would have no reason to delete your post. Anyway, I will continue researching until I can find a solution. thanks!
@mark81365
Hmm strange, or you deleted your own post, including mine
answer.
Ok, however. How to solve your ISSUE?
-
First → get userID (you will need this to get specified userData out of PMD)
PMD = PrivateMembersData/PublicMembersData. Here you will need something like this…
https://www.wix.com/velo/reference/wix-dataset/dynamicdataset/getcurrentitem
-
If you want to get full user-data, then you will have to make the request on BACKEND…
https://www.wix.com/velo/reference/wix-users-backend/getuser
But, like already mentioned → before you can do this request, you first will have to find out current userID, to provide this information to the request, to be able to get the related user-data.
no problems! he first solution you posted seems to be easier.
*Get profile picture and username from the “publicData” dataset.
Could you do a step by step on this solution? my knowledge of wix is very little but i am willing to learn. thanks!
Hahaha! this is interesting!
I’ve been looking for this solution for months! Mark, were you able to solve this problem?