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

criz - November 10, 2008 - 21:04

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

criz - November 10, 2008 - 21:07
Priority:critical» normal

#3

Junro - November 10, 2008 - 21:46

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

Junro - November 10, 2008 - 21:55

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

#5

Junro - November 10, 2008 - 22:30

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

sevi - November 11, 2008 - 14:30

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

Junro - November 14, 2008 - 15:46

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

#8

yurtboy - November 26, 2008 - 13:29

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

#9

Junro - November 26, 2008 - 13:47

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

sevi - February 11, 2009 - 14:21
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

#11

Junro - February 11, 2009 - 16:08

I'm going to check this :)

#12

Junro - February 23, 2009 - 12:41

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

sevi - March 8, 2009 - 19:46
Status:postponed (maintainer needs more info)» fixed

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

#14

Junro - March 9, 2009 - 01:17
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...

#15

sevi - March 9, 2009 - 21:34

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

AttachmentSize
draggableviews_handler_cck.inc_.patch 1.06 KB

#16

Junro - March 9, 2009 - 21:54

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

Thanks

#17

Junro - March 9, 2009 - 22:10

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

AttachmentSize
patch_failed.JPG 15.6 KB

#18

sevi - March 9, 2009 - 22:31

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

#19

Junro - March 10, 2009 - 10:38

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

sevi - March 10, 2009 - 06:19

? 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

Junro - March 10, 2009 - 10:37

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

sevi - March 12, 2009 - 09:52
Status:active» fixed

#23

System Message - March 26, 2009 - 10:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.