We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    Note: Only tested to work in FF

    Features/Notes
    1. Full drag and drop sorting and parenting
    2. Document status’s
    3. Expand and collapse
    4. Default sort is menuindex

    Install
    1. Upload all files to assets/modules/tree
    2. Copy and paste the contents of module.php into a new module and run it

    Plans
    1. Fix drag and drop indicator to be below the current line.
    2. Add script.aculo.us blind effects on the tree elements
    3. Re-add context menu
    4. Fix click on document to edit
    5. Switch default tree with AJAX tree
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      PHP 5.1.2, MySQL 5.0.19, FF 1.5.0.5

      "unknown database modx" - savenodes.php needs to include the config.inc.php file.
      // Make a MySQL Connection
      require_once "includes/config.inc.php";
      mysql_connect($database_server, $database_user, $database_password) or die(mysql_error());
      mysql_select_db($dbase) or die(mysql_error());
      

      Should also use $table_prefix instead of modx_ for the queries.
      $sql = "UPDATE ".$table_prefix."site_content

      Once those were edited, all saving did was produce an empty javascript popup message.

      The dragging and dropping was very limited and jerky, it was next to impossible to get the item to drop where I wanted it, although it did better if I had the mouse pointer directly over the icon, not the name. On mousedown, the line I was selecting jumps rather erraticly to the right and up or down.

      The links are showing as http://localhost/[~3~]

      Safari: can only drop 2 rows above the row you want it dropped to; so you can’t move the second item above the first one. Drag-and-drop is a lot smoother, though.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 6726
        • 7,075 Posts
        Waow this looks very nice on paper !

        Downloading it and will give it a test run too, thanks Mark smiley
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l'outil id