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:

  1. Created 2 views - 1 of users and another of content
  2. In the user view, add 'Flags: User's flaggings' relationship (Refer attachment user_view)user_view
  3. In the content view, add 'Flags: Node flag' relationship and 'Flags: User uid' contextual filter (Refer attachment content_view)content_view
  4. 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
  5. Set the format of the content view as 'Unformatted list' and uncheck 'Create a label' option for the 'Content: Title' field
  6. Install Views Field View module
  7. 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

Postingan populer dari blog ini

Cara Mudah Instalasi Framework Symfony di Windows 10

Endless, sistem operasi pengganti Windows yang menawan

Password Raspbian