Closed (fixed)
Project:
Flag
Version:
6.x-2.x-dev
Component:
Flag core
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2009 at 20:45 UTC
Updated:
21 Feb 2012 at 11:01 UTC
Is there any way to do multiple states on flag.
For example my use case. I have a flag on book nodes. I want users to be able to flag if they read the book.
I've fully read the book.
I've started the book.
I'm mid way through the book, etc.
Why not just create multiple flags: Multiple flags are annoying and an UI nightmare. These states are mutually exclusive, you can only have one at a time. So a drop down select or some such would be ideal. Thanks.
Another use case:
Moderation flags:
Reported - Investigating - Moderated
Comments
Comment #1
quicksketchThis will not be added and it is not possible (other than adding multiple flags). Flag is meant to be a Boolean operator and will not be expanded to multiple states.
Comment #2
quicksketchSee also:
#595056: flag status
#319448: Tri-state flags - yes/no/maybe
Comment #3
ManyNancy commentedI see, thanks. You don't think this could be a potentially useful feature? I don't see how any of my example usecases could be done with taxonomy or votingapi. This is a need that could be met by this module?
Thanks for the great module.
Comment #4
quicksketchI do think it would be useful, but if implemented, it would no longer be "flag" module at all. Multiple states is a drastically different goal than this module set out to create and would require entirely different UIs, database structures, and APIs. Flag module was never intended to do multiple states, and I don't want to rewrite the module because I think the scope of the module is already satisfactory for what it intends to accomplish.
Comment #5
finex commentedInstead of "flag" why not use CCK? Or combine "flags" and "rules"
Comment #6
quicksketchComment #7
myke commentedI would have to agree that anything more than boolean is beyond the scope of this module, as named. What you are thinking of is basically a finite state machine. I would like to see something like workflows but with the instant "flagging" of the flag module, while allowing you to cycle through multiple states... This could probably be integrated with Views/rules...
But let's keep the Flag module doing what it does best.