Generator that will build data structure suitable for Dynatree is needed. The extension is here https://github.com/alphard-code/dynatree