Currently, there can be multiple draggableviews on the same page. However, this can only be achieved if each of the draggableviews resides as a display in a distinct view. That is to say, creating a single view and adding two panel displays with a style of draggable table will result in the same problem as before (the first draggableview to load will work but the second will break both).
This appears to be because the patch that was added uses the view name to generate the form_id. Changing it to a counter or if there is some way to reference a unique views display should fix the issue.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | draggableviews-382678.patch | 2.17 KB | jon pugh |
Comments
Comment #1
elliotw commentedAfter playing around a little I found a solution that works for me without using a counter.
draggableviews_plugin_style_draggabletable.inc
draggableviews.module
Comment #2
sevi commentedAhh, ok. I didn't test it with multiple displays. Many thanks. The next development snapshot will contain this change.
Comment #3
Woggers commentedAny ETA on the next snapshot? :)
Comment #4
sevi commentedI committed the latest changes 5 minutes ago :)
Comment #5
sevi commentedSeems to be fixed
Comment #7
realityloop commentedThis is still not possible if you use a CCK field as the Draggable View sort field, which is the only way to sort another view containing the same nodes.
I hope my explaination makes sense, if not ask me for further information.
The view displays but ordering isn't possible, and I always get status message "The structure was broken. It has been repaired."
Comment #8
jon pughHere's a Patch that fixes this problem, this happens even when multiple displays are not shown on the same page.
It sets the form ID/theme function to always include the $view->name and $view->current_display.
Using the VID isn't necessary because view->name is unique.
Comment #9
sevi commentedThanks for the patch; Committed to DRUPAL-6--3 branch.
Greetings,
sevi
Comment #10
sevi commentedGuess this is fixed.