The use case

A site has many flags. Let's say 200.
Users wish to see all flagged content for a given flag.

The issue

There's no argument handler for fid, so admin must set up a separate display/view for each flag to display flagged content.

The feature request

Provide an argument handler for flag->fid, flag->name, and/or flag->title, allowing for one view to rule them all.

For me, the attached patched suits my use case, however I'm sure it won't play nice with the other flag views components.

This patch should not be used for production.
This is a proof of concept to demonstrate a simple alternative use case not addressed by the current release.

CommentFileSizeAuthor
flag.views_.inc_.patch978 bytesaaronbauman

Comments

quicksketch’s picture

Status: Active » Closed (duplicate)

I don't this request is possible to fulfull, as it would require a complete reworking of the way that Flag module's Views implementation works. Mooffie was suggesting the same thing in #276882: Rework Views2 support?, but I think it's too later to make such major changes to the Views implementations as both Flag and Views are in very mature stages for Drupal 6.

The only potential for making this work would be #371432: Exposing the flaggings table: Alternative Views support, which would add a completely new way of building views (and therefor not require changes to existing configurations). I'm marking this a duplicate, since it's reiterating two existing requests.