The taxonomy module is one of the most popular features because users often want to create categories to organize content by type. It can automatically classify new content, which is very useful for organizing content on-the-fly. A simple example would be organizing a list of music reviews by musical genre. Vocabularies (sets of categories ) which are used to classify content. The module supports hierarchical classification and association between terms, allowing for truly flexible information retrieval and classification. The taxonomy module allows multiple lists of categories for classification (controlled vocabularies) and offers the possibility of creating thesauri (controlled vocabularies that indicate the relationship of terms) and taxonomies (controlled vocabularies where relationships are indicated hierarchically). To delete a term choose edit term. To delete a vocabulary, and all its terms, choose edit vocabulary. A controlled vocabulary is a set of terms to use for describing content (known as descriptors in indexing lingo). Drupal allows you to describe each piece of content (blog, story, etc.) using one or many of these terms. For simple implementations, you might create a set of categories without subcategories, similar to Slashdot’s sections. For more complex implementations, you might create a hierarchical list of categories.
You can: Administer -> content management -> Categories -> Add vocabulary Each category group, or vocabulary, can contain multiple category entries, or terms, for tagging content. For example, a web-based discussion community might have a vocabulary such as:
• Technology
• Politics
• Education
• Religion
• Sports
An administrator might also choose to create multiple vocabularies for use with the same node type. Consider another vocabulary for use alongside of Topics, one which classifies nodes in another way:
• News
• Reviews
• Announcements
• Opinions
New vocabularies can also be created or added to at any time, with as few or as many terms as the administrator may need. And do not worry. Long before reaching Drupal’s limits at handling very large classification schemes, users would find large vocabularies and terms
unwieldy to use and maintain. Creating a vocabulary When setting up a vocabulary, Drupal will prompt for:
Vocabulary name (Required) -- A name for this vocabulary; for example, Topics.
Description (Optional) -- A description of the vocabulary (this item may be used by some modules and feeds).
Types (Required) -- A vocabulary may be associated with or more node types. So, an administrator might declare that a particular vocabulary is to be associated with stories and blogs, but not book pages. If an expected node type is unavailable, check and make sure that the module for the specific node type has been activated.
Related terms (Optional) -- Allows relationships between terms within this vocabulary. Think of these as "see also" references (this item is not used by many Drupal modules).
Hierarchy (Optional) -- Allows a tree-like taxonomy (see Using Hierarchies below).
Multiple select (Optional) -- Allows users to categorize nodes by more than one term. Useful for cross-indexing content. Nodes may then appear on multiple taxonomy pages.
Required (Optional) -- Requires a user to select a term in this vocabularly in order to submit the node. Otherwise, when creating a node, users will be offered a none option as the default
for each vocabulary.
Weight (Optional) -- Allows the administrator to set the priority of this vocabularly when listed with other vocabularies. When vocabularies are left with the default weight of zero, Drupal displays multiple vocabularies in alphabetical order. Increasing a vocabularies weight with respect to other vocabularies will cause it to appear after them in lists. Conversely, lighter vocabularies will float nearer the top of lists. Useful for specifying which vocabulary a user sees first when creating a node.
Once you have finished defining the vocabulary, you may populate it with terms. When creating a term, note that the available options may depend on what was selected for related terms, hierarchy and multiple select when creating the vocabulary:
Term name (Required) -- The name for this term. Example: Technology.
Description (Optional) -- Description of the term (this item may be used by some modules and feeds).
Parent (Required) -- Select the term under which this term is a subset -- the branch of the 84 Drupal Handbook 27 Nov 2005 hierarchy that this term belongs under (only required when heirarchy is enabled for the vocabulary).
Synonyms (Optional) -- Enter synonyms for this term, one synonym per line. Synonyms can be used for variant spellings, acronyms, and other terms that have the same meaning as the added term, but which are not explicitly listed in this thesaurus, i.e. unauthorized terms (this
item not used by many Drupal modules).
Weight (Optional) -- The weight is used to sort the terms of this vocabulary (see explanation of weight above).
Comments
Post new comment