Currently you cannot have a single view with 2 displays and have one for draggable sorting and the other use that sort. - They have to be in 2 entirely separate view.

It would be good to be able to do it as different displays in the same view.

I can't see anything that would make this impossible from a technical point of view.
It's just that draggableviews_handler_sort.inc options_form() specifically excludes the current view, which could be changed so that it includes the current view but not the current display.

Comments

ygerasimov’s picture

Status: Active » Fixed

Yes you are completely right. I have removed that check, so now you are able to set same view other display as source for your weights. Please retest and reopen this issue if it is not fixed. Thank you.

Status: Fixed » Closed (fixed)

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

futurist’s picture

I can't get this to work. Draggable sorting in the first display works but the sort order isn't used in the second one (of the same view). I have Content: Draggable views weight (asc) in the "Sort criteria" of both displays, and Content: Draggable views (Draggable views) in "Fields" (plus other fields like Content:title and Content:[custom image field].

Any idea what might be wrong? Which fields and sort criteria must be shared between all displays, which are specific to the sort display? I'm using: Views 7.x-3.3 and CTools 7.x-1.0-rc1+117-dev, Drupal 7.9.

futurist’s picture

Status: Closed (fixed) » Active
futurist’s picture

Status: Active » Fixed

Found it. The solution was given by ygerasimov in comment #3 in #1387748 Displays not sharing sort order: In the display where you want to show the order, under "Configure sort criterion" you have to choose the sorting display as source ("Display sort as") and then apply for "This page (override)".

Status: Fixed » Closed (fixed)

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