My suggestion is to give users the ability to control the order of flags by specifying their weight.

Comments

mooffie’s picture

Status: Active » Postponed

I 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.

mooffie’s picture

Perhaps we could integrate with the Draggable Views module:

http://drupal.org/project/draggableviews

(I haven't looked into that module yet.)

mooffie’s picture

Title: Weight » Support weights
merlinofchaos’s picture

I'm not sure this is a good idea.

quicksketch’s picture

I 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.

mitchell’s picture

Component: Code » Miscellaneous
Status: Postponed » Fixed
quicksketch’s picture

Component: Miscellaneous » Flag core
Status: Fixed » Active

I think the request here is simply to order the flags under admin/build/flags, not items with lists of flagged content

I 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.

ressa’s picture

I 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.

mstrom81’s picture

Hi 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!

quicksketch’s picture

Status: Active » Closed (duplicate)

Looks 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.