Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I know, I need to give more info. What sorts of things do people need to see to help me figure out why my draggableview isn't saving? I drag, they change, I click save, they go back to the same order.
Screenshot of the view? Screenshot of the DV's settings?
Thank you.
Comment | File | Size | Author |
---|---|---|---|
#5 | changed_views_not_saving-283087-5.patch | 3.27 KB | fxarte |
Comments
Comment #1
plaverty CreditAttribution: plaverty commentedOk, here's a little more info:
I have two content types, Slides and Slide Collection. The collection keeps node references to Slides. I want to show all slides for a given Slide Collection. I created a Page display.
So I set up a Relationship for Content: Slides.
I set the Argument to Node:Nid with the intent that I'd pass in a NID for the collection.
The Sort Criteria has DraggableViews: Order asc and nothing else.
My fields are:
DraggableViews: Order Order
Content: Slides Title (link)
(Slides) Node: Nid Nid
(Slides) Content: Image Title (link)
(Slides) Image: Image Image
The problem that comes in is when I view the Page Display, it all looks good, I have the handles and I have the dropdowns in the Order column. Except the dropdowns only contain a 0. When I inspect the dropdown, all of them have the exact same value:
Where that "199" is the nid of the collection and not the slide. I'm not sure what I'm doing wrong but clearly in the order field, I want that to be the nid of the slide, and I want those select fields to reflect the fact that I have multiple slides.
Any ideas of what I can look at?
Thank you.
Comment #2
TelFiRE CreditAttribution: TelFiRE commentedI have this same issue. I have tried 3 different D7 installs, following the instructions in the documentation. When you drag stuff, and then hit save, it just goes back to what it was.
This module doesn't work on vanilla install....
Comment #3
ShaunLaws CreditAttribution: ShaunLaws commentedI had the same issue. I had caching set on the page display that creates the sorting page. I disabled caching on that display, flushed all caches and was then able to save the sort order.
Comment #4
TelFiRE CreditAttribution: TelFiRE commentedFor me, caching is not enabled on that view and flushing caches does not solve the problem :(
Comment #5
fxarte CreditAttribution: fxarte commentedThe problem seems to be on how the base field is determined in draggableviews.module, instead of using the base_field parameter from the view object, that information must be extracted from the field parameter:
Then also apply it to the function:
and finally, in the file draggableviews.inc, to:
I believe this patch will help.
Patch tested with:
Hope this helps
Comment #6
iStryker CreditAttribution: iStryker commentedCan someone test this and review this. I'm out of the loop for 6.x.
Comment #7
iStryker CreditAttribution: iStryker commentedDrupal 6.x is no longer supported. Closing issue.