2

I created a flag 'Add to favorites' with the Flag module and I'd now like to create a view for the user's profile that sums up all his/her favorite content. I tried to add the relationship Flags: add_to_favorites (by current user) to my view, but then the favorites of the logged in user appear on every profile page.

How can I solve this?

2 Answers 2

1

You need to add a contextual filter "Flag: User ID", and provide a default value, "Get UID from URL". Also I think you need too change the relationship to Flags: add_to_favorites (any user)

1

Have you tried adding contextual filters -> USER -> get uid from url

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.