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

quicksketch’s picture

Sorting 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).

walloon’s picture

Thanks, I figured that might be the case.

quicksketch’s picture

Status: Active » Closed (fixed)