First - thanks for a great module!

Is there a recommended way to use draggableviews to sort EVA displays? I tried setting up a menu tab (i.e. node/%/order) but had trouble getting draggableviews weight to be respected in the EVA display.

I was able to create a working sort view as a separate page, but it displays all records, not just those in the original EVA display. I'm not sure how to pass the NID from the source node into the sort view a contextual filter - is it possible?

Thanks for any ideas or pointers.

Comments

dave bruns’s picture

Issue summary: View changes

missing sentence

bisonbleu’s picture

Having a similar issue. Worst in fact. I've tried sorting an eva with a page and attachment display without success. The sort display is accessible in contextual links, I can sort but the new sort order is not carried over to the view I need to sort.

Any suggestions?

update: I don't think eva is the problem here; read on.

bisonbleu’s picture

Title: Best way to sort EVA displays? » Is there a special way to sort EVA displays?
Component: Documentation » Code
Category: Support request » Bug report
Issue summary: View changes

Changing to Bug report. New title.

I've tried everything in the book. Just can't sort an eva. Any help and/or suggestions would be much appreciated.

eva: 7.x-1.2+5-dev
draggableviews: 7.x-2.0+56-dev

bisonbleu’s picture

I was having a problem NOT because of EVA but because of an exposed filter.

Where no exposed filter is involved, Draggable Views seems to works just fine with EVA. But when an exposed filter is introduced all hell breaks loose :-)

For example, sorting the rows with an exposed filter set to 'Any' (not filtering) appears to work when viewing the view while the filter remains set to 'Any'. But change the filter to any other option (a subset of the view) and the sort order is lost.

For example:

Original sort, filter set to 'Any' : 1,2,3 - 4,5,6 - 7,8,9
New sort, with filter set to 'Any': 3,2,1 - 4,5,6 - 7,8,9
Change filter value to 'Subset A' results in: 1,2,3
The 3,2,1 sort is not preserved.

In short, Draggable Views will break when an exposed filter is introduced. It sort of makes sense - but I can't explain what's going on.

Is this fixable? Should this Bug report be bumped up to 'Major' ?

solesum’s picture

I am also experiencing this issue, but it was not caused by an exposed filter. Rather, I am displaying a list of rendered (quiz) entities, each one including a submit-style button to take the quiz.

When I remove the Take quiz button from the rendered entity display, the Draggable Views sorting works. So I guess this issue comes up when more than one submit-type button is happening, a conflict with the Draggable Views save button.

So I think the issue is similar to this issue (except I do not have ajax save enabled):
https://drupal.org/node/1989128

iStryker’s picture

Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)

@Solesum #1989128: Ajax auto submit not working when multiple forms was fixed and commit 8 days ago. I have not worked with quizzes so I do not know what to expect. This sounds like a separate issue, but I do not know how EVA works, so maybe it is the same.

@bisonbleu You need to set your arguments to "Do not use", then it will work.

In the database 3,2,1,4,5,6,7,8,9 will have an argument of the any filter
When you try to order subset-A then there is no rows in the database with the subset-A fitler

If you use "Do not use arguments" on the sort handler, then 3,2,1,4,5,6,7,8,9 will get saved to the database with no argument
When you filter by 'subset-A' it will find 3,2,1 as it will search the database for that order view, with that order view display, with no arguments.

If you want to use argument such as 'any' checkout #1724126: Prevent saving of unused exposed filters where I suggested we add 'Any' as an option to not save any expose filters.

Marking as postponed. I think this issue is fixed by changing "Do not use arguments". Will close issue in 2 week times if there is no response.

spython’s picture

Can confirm that the issue on Draggable Views sort order breaking is solved by selecting "Do not use arguments" on the sort handler.

Thank you!