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 /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Changing the default loading behaviour of the tree

Go to End

2 Posts   1120 Views


Administrator, 88 Posts

23 October 2009 at 6:05pm

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?


Forum Moderator, 801 Posts

2 November 2009 at 8:38am

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.