So, after doing the Category tree via XML, I was rather bugged that I could not use that for non-paying sites so I put myself to try and get a way to make it work for those.See my post about doing this very same thing with XML<here>After trying different ways of getting to load a Third party-hosted file, I had to settle down to using a JSON formatted file.While JSON is very good for machine to machine interaction, I personally dislike it for manual edits, as I think its far too easy to make a syntax mistake that's going to be hard to find. Nevertheless, the ability to load cross-domain data is invaluable.So, hoping this may be useful for somebody.. here it is..
I was having some trouble this time getting everything into a single post, so I have split into multiple parts. See below.
And add the Tree root container with this line:<ul id="CategoryTree" style="margin-left: 0em; padding-left:0em; list-style:none;"></ul>Step 4- Done! That should work as is.