I cannot see drag-handles anymore.

No matter what options I choose, I can't seem to get the drag handles viewable. They worked the very first time I used this module. Since then, I have tried to uninstall/reinstall this module, maybe not completely successfully, as described in this post: http://drupal.org/node/1101504

Other than "Show input fields?" what other factors control the visibility of the drag-handles?

I have seen this warning, and I follow the directions, both ways, neither produces the handles for me:

"Display "Defaults": Draggableviews: The drag-handles will be attached to the first field. But the currently configured first field will not be shown. Move the currently configured first field to another position or choose Show input fields? on the settings page."

As well, if I try to just use the number fields to sort with, they do not work at all (ie no changes to sort happen no matter what numbers I choose). This makes me feel like the issue is higher up and has to do with the uninstall/reinstall problem mentioned above.

Comments

criz’s picture

do you use the order field provided by draggableviews?

Cablestein’s picture

Yes, I have:

-"DraggableViews: Order" in Fields
-"DraggableViews: Order asc" in Sorting
-"Style: Draggable Table" in Basic Settings
-"Order Field: Order" in Basic Settings/Style Options
-"Show input fields?" checked in Basic Settings/Style Options

What else should I look at?

I do see the output with my rows, with the sort numbers, and I get no warnings.

criz’s picture

Is the drag feature working on other pages, e.g. the views UI sorting?

Cablestein’s picture

Yes, drag works on the Views field sorting, for example.

As well, for example, drag works when I edit a Drupal menu too.

jludwig’s picture

This may sound dumb, but have you set the proper permissions to use it? I spent a good two hours trying to figure out what I was doing wrong before realizing I hadn't checked the 'Allow Reordering' box.

ericaordinary’s picture

I had the same issue and it took me ages to realise I had to specify an Order field under "Style options: Draggable Table Settings". Adding the order field as an order field gave me access to the drag handles.

ericaordinary’s picture

And I just read further and see you already have that - so I guess my problem was much simpler to solve than yours!

escribanoruben’s picture

I have the same problem. :,(
I installed the development version but it still does not work

damd’s picture

Same problem with the development version for D7, I haven't tried any other versions.

Edit: Ignore this, it was an error on my side.

rogerpfaff’s picture

could you please share the solution as we might do the same errors. I'm running in the same issue without an idea.

damd’s picture

rogerpfaff: I wish I could tell you specifically what it was, but it was some time ago now. Basically I had misunderstood how DraggableViews worked in general. My setup was simply incorrect.

rogerpfaff’s picture

damd: yes, there is some confusing setup going on with the draggable views but i was able to manage it. BUT i forgot too how I did it.

shunting’s picture

Still cannot see dragger handles. Although "Weight"-style numeric dropdowns show, they do not save.

6.20. Garland. Core plus CCK stock + views.

Permissions set to "Allow Reordering."

No errors in the logs. No messages on the JavaScript console.

Caches cleared in the database (ie not with devel).

Draggers work in other parts of the install, for example taxonomy.

Installation per the README: Draggableviews:Order is added in the Fields section. Draggable Table is enabled in as the style plugin. Order is enabled in the style plugin settings. The handler is set to Native.

In addition, the Sort field is set to Draggableviews: Order ascending. In addition, Draggableviews:Order is not the first field.

I tried displaying a custom content type with draggable views set as above, and tried with page as well. No joy.

I also added an integer field to the custom content type, enabled that in the style plugin settings, and set the handler to CCK. No joy.

Then I did all this with 6.x-3.x-dev. No joy.

What is the combination of settings that will enable this module to work? I wouldn't mind even using the weight-style dropdowns if I could only save a result.

clockwood’s picture

This may sound dumb, but have you set the proper permissions to use it? I spent a good two hours trying to figure out what I was doing wrong before realizing I hadn't checked the 'Allow Reordering' box.

Same here. Spent about an hour trying different config options. I would suggest updating the Documentation to add this step to save user frustration.

Great module, though. Thanks for developing it.

jnettik’s picture

I got tripped up as well by the permission for this module. I guess my question is why is that needed? I would assume more times than not, if I'm creating a draggable table then I want it draggable by anyone who can see that page, right?

But still is an amazing module. Thank you.

BrianLewisDesign’s picture

I can't find "Allow Reordering" or "Permissions" to enable the drag handles. I have non-functional sort select dropdowns on my CCK images. Multiple images in one node. (D6, Views 3).

... Just unchecked CCK grouping inside: Views > Fields > Content: image > [ ] Group multiple values .
And, enabled the "DraggableViews CCK handler" module.

Functional select dropdowns now, no draggable handles still. Good enough.

harry slaughter’s picture

FYI, 'Allow Reordering' is a user permission, configured at: admin/user/permissions.

Built a draggable view on my local box where I am user 1 (all permissions), then pushed it out for testing and wasted an hour figuring out why it didn't work. My role on the dev site didn't have this permission set.

kenorb’s picture

StatusFileSize
new315.2 KB

I've the same problem, sometimes drag-handles appears, I change one option and sometimes not.
I'm using it as admin, so the permission should be fine.
So I'll share my experience.

What I found, there are some conditions which are failing:

File: draggableviews_theme.inc

function template_preprocess_draggableviews_view_draggabletable(&$vars, $style_plugin_name) {
...
  $info = $view->draggableviews_info;
...
  if (!isset($info['order'])) return;

In here, my $info is already NULL (draggableviews_info property is NULL).

So I'm checking the code, which is responsible for draggableviews_info property.
File: draggableviews.module

function draggableviews_views_pre_execute(&$view) {
...
  $info = _draggableviews_info($view);
...
  if (!isset($info['order'])) {
    // Nothing to do.
    return;
  }

There is no $info['order'] defined.
Note, that I've two sorts in View. Node:Title and DraggableViews:Order:asc.
See my configuration in the attachment.

So lets see _draggableviews_info() function:
File: draggableviews.inc

function _draggableviews_info($view, $info = NULL) {
...
    // extract draggableviews settings.
    if (!empty($options['tabledrag_order']['field']) && strcmp($options['tabledrag_order']['field'], 'none') != 0) {
....
        $info['order'] = array(

$options['tabledrag_order'] in that function contains:

  'tabledrag_hierarchy' => 
    array
      'field' => string 'none' (length=4)
      'handler' => string 'native' (length=6)

So I assume that I've no field selected for ordering, means no drag-handles will appears.
Ah, ok.

Let's select 'Order Field:' in 'Style: Draggable Table' settings.
I've added 'DraggableViews: Order' for that, so I'll select this field.

When selected, I've now the following error:

 Display "Defaults": Draggableviews: The drag-handles will be attached to the first field. But the currently configured first field will not be shown. Move the currently configured first field to another position or choose Show input fields? on the settings page.

My first field is: "DraggableViews: Order Order " so I don't understand this message exactly what it means.

So I've moved "DraggableViews: Order Order" field to not be first (if I understood correctly).

Now I've this error:

Display "Defaults": Draggableviews: You must sort by DraggableViews: Order ascending as the first sort criteria to display the structure correctly.

My current sorts are:

 Node: Title asc 
 DraggableViews: Order asc 

I'm following this error message, so I'm moving my "DraggableViews: Order asc " sort to the first position.
I'm saving the view now, now without errors, the results?

I'm having drag-handles !!! :)

I'm not quite understand when does it work exactly and when doesn't, because I've tried many configuration before even this one which I've now (when it works), and previously it wasn't working. Weird.

kenorb’s picture

StatusFileSize
new77.59 KB

Sorry, this is the correct attachment.

kenorb’s picture

StatusFileSize
new63.56 KB

Now this is the configuration which works.
In 'Style: Draggable Table' settings I've selected 'Order Field:' to my 'DraggableViews: Order Order' field.
See the attachment.

kenorb’s picture

Category: bug » support
istryker’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Drupal 6.x is no longer supported. Closing issue.