Default weight on flag
mr.andrey - August 15, 2009 - 15:12
| Project: | Flag Weights |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hello and thanks for this wonderful module.
We're using it to replicate NetFlix's queue functionality for yoga videos.
I'm using it with the combination of draggable views. I noticed that if I flag a node, it lands smack in the middle of the queue. It would be nice to have it be either on top or bottom. Draggable Views has this option at the bottom of the table configuration. It doesn't seem to affect flag weights though.
Any ideas?
Andrey.

#1
The reason it defaults to the middle of the list is that the flag weight defaults to 0, and draggable_views will renumber items whenever you use it. I could add a default weight, but in order to consistently put a new item at the top or bottom of the list, it needs to be bigger/smaller than all other items on the list. This would require an extra query to the DB, etc.
Draggable views is just one use for Flag Weights, and the settings you refer to are particular to one view. More investigation required, but my battery is flat - gotta dash.