The Taxonomy has a nice drag/sort UI. Is there anyway I can take advantage of it for my own use?

If the code is already in the core - isn't this module just adding more 'fat' to the code?
(I am probably missing something here).

thanks.

Comments

sevi’s picture

As far as I know takes drag/sort UI of Taxonomy (similar to the navigation-builder of drupal-core) just advantage of the drupal-core-tabledrag-javascript.
But it uses its own customized code and its own database-tables to save the hierarchy.

nextpulse’s picture

For D6, the best approach is:

http://api.drupal.org/api/function/drupal_add_tabledrag/6

This module will just make the app more heavy and less compatible.

sevi’s picture

I am afraid I didn't get the point at all.
The removal of this module would not solve any problems.

This module doesn't redefine http://api.drupal.org/api/function/drupal_add_tabledrag/6 but it uses drupal_add_tabledrag - a great feature drupal6 offers.

draggableviews-view-draggabletable.tpl.php, line 18
  //add tabledrag
  if (count($tabledrag) > 0) {
    foreach ($tabledrag as $drag) {
      drupal_add_tabledrag($tabledrag_table_id, $drag['action'], $drag['relationship'], $drag['group'], $drag['subgroup'], $drag['source'], $drag['hidden'], $drag['limit']);
    }
  }

As I found out you already agreed to that fact at http://drupal.org/node/325846.

I'm sure: if you wrote the implementation of drupal_add_tabledrag for your special use by your own, you would achieve more performance.
But the main goal of draggableviews is the ease of use and that's why we hazard the consequences which result in slight performance loss.

sevi

mitchell’s picture

Category: support » feature
Status: Active » Closed (won't fix)

marking as won't fix

sevi’s picture

Status: Closed (won't fix) » Closed (fixed)