Taxonomy is one of the best features that make Drupal superior than many other CMSs. This is article, we will introduce basic concepts of taxonomy in Drupal.
For new Drupal users, Drupal's Taxonomy is difficult to understand at first. But it doesn't have to be. “When all the fancy language is stripped away, Taxonomy is about one thing: organizing your site by attaching descriptive terms to each piece of content”.
Taxonomoy: Vocabulary and Term
In Drupal, Taxonomy is a method that administrators use to organize website content. You can set up a taxonomy that allows users to add terms (also known as tags or metadata) to content. Taxonomy is created from 'Vocabularies' that contain related 'Terms'. A vocabulary is a set of terms and terms are just another word for categories.
Each category group, or vocabulary, can contain multiple category entries, or terms, for tagging content. For example, the vocabulary Vehicle could include the following categories and subcategories:
Note that the term Train appears within both Railroad and Land. This is an example of multiple parents for a term. Just select both parents when creating the term Train.
Working with vocabularies
To add new vocabularies, using the add vocabulary tab at the top of the page. Or go to: admin/content/taxonomy/add/vocabulary
- Choose a name for your vocabulary.
- Add a description.
- Choose content type: "story", "book page" or whatever. Then when users create content of a particular type, they'll see a list of your vocabulary terms that go with it. Users can then categorize their post by choosing from the
- If you allow "free tagging", when your users create content they can make up their own terms as they go along, instead of having to choose from a list.
- By choosing "multiple select", this allow your users to put a post into more than one category at once by tagging it with more than one vocabulary term.
- Require option is that when your users create content of a certain "content type" they assign at least one of this vocabulary's terms.
- You can add "weight" to it to specify the order of appearance.
This is screenshot:
Taxonomy Drupal vocabulary
Working with terms
To view or manage the terms of each vocabulary, click on its list terms link. On the list terms page you can edit each term by clicking the edit link. Now, on the edit term page you have several kinds of choices.
- Assign your term a name.
- Choosing the term's "parent".
- Select term to be related (you can select multiple terms by using the standard conventions of your operating system, like shift-click and control-click).
- List synonyms for your term.
- Add weight for term.
This is screenshot:
Taxonomy Drupal term