Closed (duplicate)
Project:
Flag
Version:
6.x-1.x-dev
Component:
Flag core
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2008 at 03:55 UTC
Updated:
8 Sep 2011 at 21:55 UTC
My suggestion is to give users the ability to control the order of flags by specifying their weight.
Comments
Comment #1
mooffie commentedI was planning this.
The problem is that we don't want this module to become big. There are two solutions:
1. This module will only provide a 'weight' column in the database. Some other module will provide the UI.
2. We could provide a Views field for setting the weight. In other words, we want a view that is a form. This is related to the checkboxes-in-a-view discussion.
Comment #2
mooffie commentedPerhaps we could integrate with the Draggable Views module:
http://drupal.org/project/draggableviews
(I haven't looked into that module yet.)
Comment #3
mooffie commentedComment #4
merlinofchaos commentedI'm not sure this is a good idea.
Comment #5
quicksketchI think the request here is simply to order the flags under admin/build/flags, not items with lists of flagged content (then it'd be sort of like a weird nodequeue). When using flag_get_flags(), the flags would be ordered by their weight, so that flag links would come out in the same order also.
Comment #6
mitchell commentedCheck out http://drupal.org/project/flag_weights
Comment #7
quicksketchI think reordering flags on admin/build/flags is still a reasonable request, since it will affect the order of links displayed on node view. flag_weights solves the problem of weighting flagged content, not the flags themselves.
Comment #8
ressaI second that. To make the flag link appear before the edit links, I can change the weight of the flag module in the system table to something low like -100, but it's not an optimal solution.
It would be better if it was possible to set the weight pf the flag module from the user interface.
Comment #9
mstrom81 commentedHi there,
I'm trying to sort the order of several different flags by whether they are set or unset in the node's view page. Does anyone know where the flag.tpl.php code is invoked from? It seems that it's invoked once per flag.
Thanks very much!
Comment #10
quicksketchLooks like there's a working patch at #1159470: Add ability to adjust flag order on node/add/* & /admin/structure/flags pages. Let's mark this one duplicate.