Drag nodes using an exposed filter doesn't work.
Junro - November 10, 2008 - 20:55
| Project: | DraggableViews |
| Version: | 6.x-3.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Hello,
I have a exposed filter (by year) in my Draggagle views in order to users can make annual rankings. I can't drag directly with the exposed filter, I have to drag without my year filter. My view contains a lot of nodes, so it's not easy, an not interresting for my users to drag all the entire nodes (it don"t make sense for my king of rankings). The solution is not use an exposed filter but I can't do that, I can't make one view per year...
What do u think about this?

#1
What about using arguments and maybe linking to the different years in the header section of the view? So you would have something like a faceted search... (just an idea)
#2
#3
Well, I don't know, it will make this much complicated. I don't understand why It can't be fixe with some code. This module is almost perfect.
I have an idea, maybe the solution is to add the field year and hidding it, and use the sort of critera with the year field first and after the weight field. Oups just adding the year in sort of critera is enought...
#4
It's not working, I'm going to see your idea ^^.
#5
Aie, I was forgot this... I can't use years in argument because i'm using a node reference for this field and fields using node reference don't work with arguments....
#6
I could take the exposed filters into account for building the new structure. But once you show nodes from different years in the same view, the structure will be broken again. Maybe I'll find some time for this some day..
#7
Do you think you will get some time to do this before Christmas? Is it hard work?
#8
maybe you can force a default filter and nevr an all/any
#9
yep but I have all years since 1900... I'm not going to create 108 views +1 every year...
It's really piss me off...
It's a good module but is not maintain as it has to.
To bad that Sevi has no time to make it better, it's such a great module...
#10
This all works if "Remember" is checked at the exposed field settings.
But if "Remember" is not checked the code needs some modification.
I tried the following:
(The path to my view is "dragdrup/?q=draggable".)
I added the exposed filter "title" and filtered by "s". So the URL was "dragdrup/?q=draggable&title=s".
I checked the resulting HTML output (especially the head of the draggableviews formula):
<form id="draggableviews-view-draggabletable-form-draggable" method="post" accept-charset="UTF-8" action="/dragdrup/?q=draggable&title=s">When I click submit I always get redirected to "dragdrup/?q=draggable" - and that's what I don't understand. Shouldn't I see "/dragdrup/?q=draggable&title=s" (as it is written in the action)? (..then this issue would be fixed :) )
Please help me out :)
greetings,
sevi
#11
I'm going to check this :)
#12
Still working on this? I didn't test it yet. I'm going to check this today with my last draggable views, the biggest one with exposed filter.
#13
The paging problem has been fixed in the meanwhile. And exposed filters work if "Remember" is checked.
#14
Hello Sevi, draggable views with paging seems to work great ^^ but with date filter (exposed or not) don't... Have you try it? with Date filters?
active because it was the original problem of this post... date filters...
#15
Pfuh, it was hard to find the reason because I always used the native handler and everthing worked fine.
But then I remembered that the CCK-handler always sets the "created"-time of all rearranged nodes to the current time. I modified the saving-behaviour of the CCK-handler to prevent this.
The patch works for me with CCK-fields and even if "Remember" is not checked.
cheers
#16
ok lol i'm going to try the patch right now :)
Thanks
#17
Hum the patch is not working for me, look the screenshot
#18
Hm..don't know.
Just copy'n paste the line
$node->date = format_date($node->created, 'custom', 'Y-m-d H:i:s O');above the comment// finally save the nodein your modules/draggableviews_cck/draggableviews_handler_cck.inc (look at the patch).#19
ok, I add:
62 // If we didn't set $node->date then node_submit() would set it to the current timestamp.
63 $node->date = format_date($node->created, 'custom', 'Y-m-d H:i:s O');
62 // If we didn't set $node->date then node_submit() would set it to the current timestamp.
63 $node->date = format_date($node->created, 'custom', 'Y-m-d H:i:s O');
64
65 // finally save the node
66 if ($node = node_submit($node)) {
67 node_save($node);
68 }
but it still doesn't work, is it work for you, try add date filter, publication date for exemple...
#20
? I can't find publication date in the list. I used post date and created a new Date-CCK-Field. Both worked fine for me. Can you specify exactly what doesn't work? Do you see error messages?
#21
sorry publication date must be post date (publication is french).
Well, in fact nothing wrong with draggable views module... it's with the date module. Post date works.
I'm using a relation with the date filter. It doesn't work with a table style either, so....
As the date module will not work, I can't see if draggable views module works perfectly with dates filters.
Too much trouble with date module actually...
I'm going to wait, create a Date module issue, another one... too much work for Karens.
You could set the status on "Fixed" I think, I will open it again if it still doesn't work when others view style will work.
Thanks
#22
#23
Automatically closed -- issue fixed for 2 weeks with no activity.