hierarchical listing
Hierarchical Listings in Views 2: Replicating the LinksDB Directory
Submitted by dale on March 27, 2009 - 4:54pmThe LinksDB module provides a nice "it just works" way for implementing a classic Links page. The standout feature is its hierarchical display of the URLs. Even after Views and CCK arrived, the hierarchical display was worth staying with the module. Sadly, with a site to upgrade and no Drupal 6 version of LinksDB in sight, it was time to convert.
This post is part 2 of 2 of how I migrated the CIPS Vancouver Security SIG Links Directory page from LinksDB to CCK/Views. In part 1, Migrating LinksDB Module Data to CCK, I covered migrating LinksDB data into Drupal nodes and taxonomy. In this post I cover creating the URL Links directory page in Views.
Even if you're not interested in LinksDB, this post provides an example of theming Views to display a hierarchical list using taxonomy to define the hierarchy. This same technique was used to render my Drupal Notes page.
Here are before and after screen shots of the SecSIG Links Directory page:
LinksDB Module Page

Views Replacement of LinksDB Module Page

View Definition
The View definition is un-extraordinary. Here is a snapshot of its edit page, an export of it is included at end of this article.
