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 you can already reorder these values within the node edit form,
but would be good if this module could be used to reorder these values as well,
am going to have a look at the code and see what I can do,
there seems to be a delta column in the draggableviews_structure but not sure if that is there for potentially being used for this kind of functionality
Comment | File | Size | Author |
---|---|---|---|
#3 | draggableviews-export-gallery-field_images-delta-sort.txt | 6.87 KB | davidwhthomas |
Comments
Comment #1
sevi CreditAttribution: sevi commentedNo, i just need it to distinguish the "DraggableViews: Order" and "DraggableViews: Parent" fields when I save them to database.
Comment #2
stone_d CreditAttribution: stone_d commentedI would like to see that feature too.
In my case i use the taxonomy CCK field that holds a vocabulary of different categories a photographer is working in. Those are clickable for the users. But the order of those terms should be individual for every photographer.
So - is it very difficulty to implement?
Comment #3
davidwhthomas CreditAttribution: davidwhthomas commented+1 for this suggestion, I've been trying it out and got 90% of the way there.
Unfortunately, Draggableviews creates an invalid select box for each imagefield delta value. It defaults to the total number of images in the view, and not the actual imagefield delta value.
Thus, it fails to save the updated deltas.
My example view is attached, ready to import, if of any use.
It manipulates "field_images" on a "gallery" content type using imagefield delta.
However, it fails to update the delta at the final stage.
Any ideas?
Comment #4
stone_d CreditAttribution: stone_d commentedAnything new to this? I would really like that feature. Id also pay for that ...
Comment #5
gunwald CreditAttribution: gunwald commentedDoes Draggableviews have that feature now?
Comment #6
iStryker CreditAttribution: iStryker commentedNo. Not that i'm aware off. This is a problem in both 6.x & 7.x
Comment #7
hawkeye.twolfIn my case, I want to reorder Field Collections and use the built-in "delta" so that users may also reorder their FC items via the node edit form (default FC functionality).
This is almost possible with current DraggableViews, except that the "FieldAPI" option does not recognize the Field Collection Item's "delta" field as an integer after I add it to the Sorts. I'll probably go the route of adding a "weight" field to the field collection, and then use hook_node_presave() to set the weight field to the delta (when reordering via DraggableViews) and to set the delta field to the weight (when saving via the node edit form).
Cheers,
Derek
Comment #8
lunk rat CreditAttribution: lunk rat commentedReordering delta of a multi-value field using draggableviews would be awesome and useful.
Comment #9
Itangalo CreditAttribution: Itangalo commented+1 on this feature.
Comment #10
iStryker CreditAttribution: iStryker commentedThis probably won't get added to 6.x-3.x, as that branch is not really supported (patches are welcomed).
Moving the feature request version to 7.x-2.x.
TODO: Add field collection issue as related issue (pretty sure there is one that is open right now).