H,

Great simple module! I am trying to implement flag weights, flag and draggable views together that allows user to sort rows by draggable. I was thinking some users might be too lazy to drag and just wanted to sort by title, integers etc and will flag weights be able to match the sort after saving?

Not sure whether I should bring this request here or draggable views though..

CommentFileSizeAuthor
#2 draggableviews.inc_.patch1.35 KBsevi

Comments

lyricnz’s picture

Project: Flag Weights » DraggableViews
Category: support » feature

Since this functionality would be generic, and not particular to Flag Weights, I am assigning to Draggable Views

sevi’s picture

StatusFileSize
new1.35 KB

Hi, good idea :)

the attached patch checks if click sort was used and simply overrides the order-values with numbers in ascending order.
When using click sort now all subordinated nodes will be brought down to the root level as it's impossible to retain hierarchies after a click-sort.
Seems to work :)

greetings,
sevi

Btw: Did you already try mixing different handlers in the same view? You can use 'flag weights'-handler at the root level and e.g. the 'native' handler for the second level and the parent. (use e.g. 'Draggableviews: Value #1' and 'Draggableviews: Value #2' So it's possible to organize your flagged nodes in hierarchies.

dropchew’s picture

Hi

Just tested and it works thanks!

edit: just saw your statement below, I haven try that out yet...

sevi’s picture

Status: Active » Fixed

I think that's fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.