Closed (fixed)
Project:
Flag
Version:
7.x-3.6
Component:
Flag core
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2015 at 16:20 UTC
Updated:
28 Mar 2015 at 21:34 UTC
Jump to comment: Most recent
If I understand well the flag cardinality is hardcoded to be on the user. What if I need a flag by entity?
Wedding registry is an entity that more than 1 user can manage. I want to create a list of products in the registry, that will be added when a Wedding registry (manager, one of the users) flags them.
when one of the "managers" flags a product that is added by rules to the Wedding registry list.
another "manager" can still flag the same product, i.e. he won't see the flag as already flagged since he is a different user
OR, if the flag is global, another Wedding registry manager can't add the same product to his registry.
Is this a (major) feature request or just a support request? :)
Comments
Comment #1
kopeboyComment #2
joachim commented> If I understand well the flag cardinality is hardcoded to be on the user. What if I need a flag by entity?
I don't really understand what you mean. I don't recall there being any cardinality-limiting functionality in Flag, though admittedly I don't have the codebase right in front of me.
> Wedding registry is an entity that more than 1 user can manage. I want to create a list of products in the registry, that will be added when a Wedding registry (manager, one of the users) flags them.
I don't think you want flag for this use case. You want a 'wedding registry' entity, which has a multi-valued reference field that points to the items which are then considered to be in the list. That way you can create multiple lists.