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?

Comments

criz’s picture

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)

criz’s picture

Priority: Critical » Normal
junro’s picture

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...

junro’s picture

It's not working, I'm going to see your idea ^^.

junro’s picture

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....

sevi’s picture

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..

junro’s picture

Do you think you will get some time to do this before Christmas? Is it hard work?

yurtboy’s picture

maybe you can force a default filter and nevr an all/any

junro’s picture

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...

sevi’s picture

Status: Active » Postponed (maintainer needs more info)

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

junro’s picture

I'm going to check this :)

junro’s picture

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.

sevi’s picture

Status: Postponed (maintainer needs more info) » Fixed

The paging problem has been fixed in the meanwhile. And exposed filters work if "Remember" is checked.

junro’s picture

Status: Fixed » Active

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...

sevi’s picture

StatusFileSize
new1.06 KB

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

junro’s picture

ok lol i'm going to try the patch right now :)

Thanks

junro’s picture

StatusFileSize
new15.6 KB

Hum the patch is not working for me, look the screenshot

sevi’s picture

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 node in your modules/draggableviews_cck/draggableviews_handler_cck.inc (look at the patch).

junro’s picture

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...

sevi’s picture

? 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?

junro’s picture

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

sevi’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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