Hi,
i need to make a block which display users' pictures for the five latest users who have posted in a group (organic group)
So to do that, I've created a view of content and add relationship OGmembership from node and a contextual filter which use this relationship on the group ID (provide default value : id content from URL) to limit nodes (just nodes of the group).
After that, I've created an other relationship on content : author to have the user's data of the node's creator.
Filter Criteria : (OG membership from node) OG membership: Group_type (= Node) to hide users.
So I've now all nodes of the group and I can access to the author's data.
In fields I just add the user picture while using the author relationship and the sort criteria Content : post date (desc).
Thanks to the sort criteria, i can limit the number to 5 with the pager.
Until then, it's seem to be good, but when a user post two times in the five latest node, his picture is displayed two times whereas I want to display 5 differents pictures : If the latest posts are : 1 5 2 1 2 3 6, I want to display 1 5 2 3 6.
I've try with the Query settings Distinct and pure Distinct but it remains the same.
Maybe my approach isn't the great one, someone can help me ?
Comments
Comment #1
mustanggb commented