I've been install the lastest DV (Draggable Views)

It can work correctly when use 'Native' handler.
When use 'fieldAPI' handler the Field select list has none of field.
Something wrong?

I want DV can order the Node Hierarchy's 'Weight' field (an external module) instead of own Weight.

Or I misunderstood about the handler can solve my problem. Can anyone explain it.

Thank you.

CommentFileSizeAuthor
Screen shot 2012-03-15 at 1.46.22 AM.png208.33 KBbentino

Comments

ygerasimov’s picture

Status: Active » Fixed

First you should add sort by your integer field. Then it will appear in your Field API handler select box. Please let me know if you still have problems with it.

ygerasimov’s picture

I have added extra warning message for this case to avoid similar confusions in the future.

magtak’s picture

Status: Fixed » Active

Got the same issue, sorter added but the option is not available to choose. Funny thing is that in another view it worked.

magtak’s picture

Of what I can see, the problem occurs when in a view, multiple blocks or pages are created, and each of them requires a different sorter.

For example, in View A that show's content of type "Cake" I have the pages "All Cakes" , "Chocolate Cakes" and "Popular Cakes". "Cake" has 2 integer fields, one named "field_chocolate_sorter" and one named "field_popular_sorter".

The "All Cakes" page is sorted alphabetically, the "Chocolate Cakes" with it's own sorter and the "Popular Cakes" with it's own sorter. In such a situation, the fieldAPI selection is empty.

Also in another view that displays another content type, that also has 2 Integers, one for it's page and one for it's block, (not alphabetically) I get the option for the page sort but not for the block sort.

Any help?

magtak’s picture

Ok, got it to work, don't know if this is the logic you intended it to work with, so i am posting the steps I followed in order for it to work.

In order for my draggable views field to "see" the Integer sorter field I added, I had to not only add it as a sorter, but also select Apply All Displays.
Everytime I selected Apply This Display (Override) it didn't work. I figured this out by accident.

So in order to fix my previous example with the cakes, I added all possible sorters to All Displays and then I went to each individual display to remove it.

Hope this helps in your debugging, I provided as much information as I could, I don't know if this is a bug or working as intended as I said. If not a bug feel free to close the ticket :)

ygerasimov’s picture

Status: Active » Fixed

@magtak Thanks a lot for tracing this bug. I have fixed it, so hope it won't happen again.

magtak’s picture

cheers mate :)

Status: Fixed » Closed (fixed)

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

bogdog400’s picture

Alas, I'm still seeing the same issue. I'm not creating multiple pages or views, but it still won't appear. I am trying to use it with the Flag Module and so I'm relying on a relationship to bring the Flag Count into the view.

I have tried using these instructions, but I run into a problem when the FieldAPI selection doesn't show any choices.

http://drupal.org/node/356781

Are there any suggestions for the best way to connect DraggableViews with the Flag API?

Thanks for all of the help. The module(s) are impressive.

G Gavitt’s picture

I am seeing the same issue as #9. FieldAPI selection will show no fields if I am using a relationship. Regular fields will work fine if a make new view...but when I add a relationship on the sort its breaks the FieldAPI selection after I have saved the view.