Hierarchical List of Terms in Drupal
When you're building a website with Drupal, creating a vocabulary list is one of the steps toward managing your site's content. Using Drupal's "Taxonomy" module, you classify the content based on how how you categorize the terms in the vocabulary list. The alternatives are to tag terms, ranking them equally, or to create a hierarchy where some terms are subcategories of others.
-
Vocabulary
-
To create a hierarchy, first create a site vocabulary. For a film reference site, for example, you might start off with a parent term such as "War Movie." Under the parent you list subcategories or "children" such as "Navy Movies," "Air Force Movies" and "Infantry Movies," each of which can have its own children. This makes it easier for viewers to locate content with your site menu. You can include as many terms in your hierarchy as you choose -- there's no limit in Drupal.
Hierarchy
-
Using Drupal, you can create more than one hierarchy on your site in order to classify content multiple ways. With "War Movie" as the parent, for example, you can create a hierarchy based on branches of the military, then a second hierarchy using "World War II," "Civil War" and "Vietnam War" and as many more hierarchies as you need. To create a vocabulary hierarchy, go to your site's "Administration" menu and click on "Structure" or on "Content Management" and "Taxonomy," depending on your version of Drupal.
-
Working With Terms
-
Working in the "Administration" menu, assign your hierarchy of terms an overall name. Click to add terms, give each term a name, and identify each term's parent to fix the term's place in the hierarchy. In some editions of Drupal, you can create a thesaurus which identifies synonyms for each term, to make it easier for visitors to find the content. To add vocabulary to your site menu, click on "Administer," "Site Building" "Menus" and then "Add Item."
Modules
-
Drupal's Taxonomy module comes as part of the standard package of Drupal content-management software, but you can add other Drupal modules if you wish. Site administrators employ the "Hierarchical Select" and "Hierarchical Select User Terms" modules to let users select some of the vocabulary. "Taxonomy CSV Import/Export Help" allows you to import lists of terms from other sites or from CSV files. Drupal is open-source, so other hierarchy-management modules may become available.
-