Support use of custom "tag"
| Project: | UpDown |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Each vote in the Voting API has the following attributes:
vote_id: sequential number assigned by voting api
content_type: "node" for updown_node
content_id: node id for updown_node
value: -1 or 1 in our case
value_type: points in our case
tag: "updown" in our case
uid/timestamp/vote_source: the user/time/IP of the voter
To make this module more flexible, it would be good if the system would support custom "tags", rather than just the hardcoded constant. In this way, you could attach multiple votable attributes to a single node, and distinguish between them using the tag field. EG: a node might have a multi-value field containing a shopping list - you could vote for items on the shopping list, not just the node itself.

#1
Voting on fields rather than just nodes would be ideal. I'm looking for a solution that forces people to choose one of three images uploaded via Imagefield in a node. Does any one have any ideas? Thanks!
#2
From http://drupal.org/project/updown :
That being said, I have filed the same request against that module, and provided an (incomplete) solution to this. I would expect to have this done in the next few weeks, but this support will be at the API level, rather than the user-interface level. Someone will have to build this kind of functionality on top of the support provided by my patch.
#356526: Support custom (VotingAPI) tags in votes