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?
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | patch_failed.JPG | 15.6 KB | junro |
| #15 | draggableviews_handler_cck.inc_.patch | 1.06 KB | sevi |
Comments
Comment #1
crizWhat 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)
Comment #2
crizComment #3
junro commentedWell, 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...
Comment #4
junro commentedIt's not working, I'm going to see your idea ^^.
Comment #5
junro commentedAie, 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....
Comment #6
sevi commentedI 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..
Comment #7
junro commentedDo you think you will get some time to do this before Christmas? Is it hard work?
Comment #8
yurtboy commentedmaybe you can force a default filter and nevr an all/any
Comment #9
junro commentedyep 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...
Comment #10
sevi commentedThis 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
Comment #11
junro commentedI'm going to check this :)
Comment #12
junro commentedStill 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.
Comment #13
sevi commentedThe paging problem has been fixed in the meanwhile. And exposed filters work if "Remember" is checked.
Comment #14
junro commentedHello 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...
Comment #15
sevi commentedPfuh, 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
Comment #16
junro commentedok lol i'm going to try the patch right now :)
Thanks
Comment #17
junro commentedHum the patch is not working for me, look the screenshot
Comment #18
sevi commentedHm..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).Comment #19
junro commentedok, 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...
Comment #20
sevi commented? 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?
Comment #21
junro commentedsorry 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
Comment #22
sevi commented