Menampilkan User and Flagged content
order by
I had the same issue where I wanted to show the title of the content flagged with a certain flag by each user. I solved it as follows:
- Created 2 views - 1 of users and another of content
- In the user view, add 'Flags: User's flaggings' relationship (Refer attachment user_view)
- In the content view, add 'Flags: Node flag' relationship and 'Flags: User uid' contextual filter (Refer attachment content_view)
- Select 'Display contents of "No results found"' for 'WHEN THE FILTER VALUE IS NOT IN THE URL' in the contextual filter added in step 3
- Set the format of the content view as 'Unformatted list' and uncheck 'Create a label' option for the 'Content: Title' field
- Install Views Field View module
- Embedd the content view inside the user view as a field by passing uid as a contextual filter to the content view
Hope this helps someone.
Regards,
Supriya Rajgopal
Komentar
Posting Komentar