Use case description : Create an expandible nav tree for drupal that would allow a dynamic navigation of a hiërarchy of elements that are related to each other using cck node reference fields .

Platform : Drupal 6.13

Solution : No module could be found that would do this out of the box, so I wrote a module that generats a block. The content items are extracted from the db using a sql query with a couple of joins. Subsequently, the results are placed into arrays and the arrays are parsed as nested html <ul> and <li> items into a jquery treeview navigation. This required installing the jquery treeview plugin in to module folder and calling the js in the module code.

This page was usefull for defining the html list structure.

The result is here.

I hope to find the time to make this into a more generic module all it would take is a decent admin page.