SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2006
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Drag and Drop sorting of multiple lists

    Hey folks,

    I've just started working on a module for the Drupal CMS where I want to create a GUI for moving Book.module pages around. Currently doing such a move is slightly onerous, and moving multiple pages around can take quite a while.

    I've got a page set up with two nested lists like so:

    • Book One A
      • Book One Child 1
        • Book One Child 1 Descendant a
        • Book One Child 1 Descendant b
        • Book One Child 1 Descendant c
      • Book One Child 2
      • Book One Child 3
    • Book One B
    • Book One C


    • Book Two A
    • Book Two B
      • Book Two Child 1
      • Book Two Child 2
      • Book Two Child 3
    • Book Two C
      • Book Two Child 4
      • Book Two Child 5


    What I want to be able to do is to sort between lists, and between the multiple levels of the lists. Ideally, I'd like to be able to completely re-order these list items in anyway the user so chooses, even being able to create a new top-level list if necessary (which would correspond to a new book being made).

    I've found some methods for sorting single lists, and some experimentation for sorting between two lists, but I've seen nothing for such a complicated sorting. Any suggestions?

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have a look at Script.aculo.us, that has pretty clever drag/drop sorting scripts.

  3. #3
    SitePoint Zealot
    Join Date
    Jul 2006
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah I took a look at them, and at Tim Taylor's toolman library, but they don't seem to be able to handle these cases. I'm going to start trying to code it myself, but I'll probably have problems making the script cross-browser.

    Dave


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •