Closed (fixed)
Project:
Flag
Version:
6.x-2.0-beta2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2010 at 03:24 UTC
Updated:
8 May 2010 at 02:12 UTC
For a number of reasons, I'm using Flag instead of Vote up/down to allow people to flag certain nodes in a binary fashion. For example, they click the "Yes" flag if they believe a certain truth-claim that the node presents, and "No" if they don't. What I'd like to be able to do is to show the percentage of people who flagged a certain node "yes" versus "no" and to create a view that ranks nodes by highest-percentage believed vs. not believed. Is it relatively straightforward to do something like that with Flags + Views and arguments, or perhaps with Rules integration?
Comments
Comment #1
quicksketchSorting by a percentage of Yes vs. No is not possible with Views as far as I know. The flags are completely independent from each other SQL-wise, so you'd need to be able to do something like a math operation within your View query, then sort on that. Unfortunately Views does not have this capability (as least in Views 2, it might in Views 3).
Comment #2
walloon commentedThanks, I figured that might be the case.
Comment #3
quicksketch