How to connect user profile pictures to review comments without data-ms-member=profile functionality
Hello friends! I have a question:
I am developing a reviews form, that when it completes the user an automated item is generated, how can I do so that the image recognizes the profile picture that each user has configured?
I don't want the data-ms-member=profile, what I want is that each review that is displayed has the image of the person who commented.
Comments
3 comments
Hey Boggan null, where is the profile picture of the user being stored currently?
If its stored as profile picture in memberstack for each user, then you can use the custom attribute data-ms-member="profile-image" to populate the image. Hope this helps.
When I set this attribute, I get the image of all reviews with the same profile picture as the logged in user.
What I want is that each user who leaves a review has a corresponding profile picture.
These reviews are in a CMS template of each professional that offers a service, in this template are placed reviews that are leaving different users.
Ah got it.
Do you have review items linked up with the users? i.e. Do you store user info in webflow CMS including their profile picture? If yes, you could map the image field directly with the picture of the user from the Users collection when you populate the reviews.
In case you store reviews in webflow CMS but not the users and if you have an automation which creates review item in the Webflow CMS, when the user submits the form, you can pass on the profile picture of the reviewer (by fetching it from memberstack) while creating the review item. You can create an image field in the review collection and do so. That way, you could map the image field to the image field in review as well. Hope this helps.
Please sign in to leave a comment.