hi all
Quote from: heliotrope at Feb 28, 2007, 06:34 PM
Not sure about it but have a look to this file => manager/frames/nodes.php around line 73
In makeHTML function
the default params are set by these lines
this suggestion didn’t work correct for me (running 0.9.5. after login to the manager, i first had to reload to display the tree in default order)
i’ve come across a better working solution:
in manager/frames/tree.php line 268 change
new Ajax('index.php?a=1&f=nodes&indent=1&parent=0&expandAll=2', {method: 'get',onComplete:rpcLoadData}).request();
to
new Ajax('index.php?a=1&f=nodes&indent=1&parent=0&expandAll=2&dt=&tree_sortby=menuindex&tree_sortdir=ASC', {method: 'get',onComplete:rpcLoadData}).request();
this js function is executed by body onload and therefore you don’t have to reload the manager first.
btw: there is a ticket(
http://modxcms.com/bugs/task/14) for the "Default Tree Sort order"-issue, which is in state "implemented". but as much as i can see, in 0.9.5 and 0.9.6rc3 this behavior isn’t implemented yet. did something gone wrong here?
greetz
JayBee