Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS

Changing the default loading behaviour of the tree


2 Posts   903 Views


23 October 2009 at 6:05pm Administrator, 86 Posts

I'm using the tree control to load a hierarchical dataset that's not being pulled from SilverStripe's db, but that load process makes use of some RPC calls to another system, meaning the load of child nodes can take a lot longer. The current behaviour of the tree seems to be that a number of levels of the tree are loaded, then everything else loaded via ajax requests when you expand the node. Is there anything in particular that I should do to enforce the use of ajax calls for loading children?


2 November 2009 at 8:38am Forum Moderator, 801 Posts

Hm, other than digging through tree.js, LeftAndMain_left.js and CMSMain_left.js? Don't think so ;)
The tree doesn't really have API documentation, and is only extensible in a limited fashion.
Hopefully we'll get a new shiny tree library in there soonish, which will be a bit better documented.