Access Keys:
Skip to content (Access Key - 0)

Tagging Content Using Taxonomies

On this page:

What Are Taxonomies and How Would I Use Them?

Taxonomies offer a way to categorize, or tag your content. Users can click a tag to view all content which has been assigned that tag. Taxonomies can also be used to categorize blocks and views.

In Drupal, a tag name is called a term. Terms are grouped together into a vocabulary. These are the steps to setting up and using taxonomies:

  1. Select or create a new vocabulary
  2. Add your terms to the vocabulary
  3. Edit content types to include a field for vocabulary terms
  4. Select the appropriate term(s) for individual content

Vocabulary

You can use the default vocabulary or create a new one. You can create an unlimited number of vocabularies and add an unlimited number of terms.

To add a vocabulary:

  1. Click Structure, then Taxonomy.
  2. Click + Add vocabulary.
  3. Add a Name and Description.
  4. Click Save.
    add vocabulary

    define vocabulary

To delete a vocabulary:

  1. Click edit vocabulary.
  2. Click Delete twice to confirm.

Adding Terms

To begin adding terms to your new vocabulary click add terms.
add terms

define terms

Click the List Tab on the top right of the page. You have the option to edit terms, re-arrange the order or create sub-terms. Drag a term under and to the right to create a sub-term.
list terms

Adding a Field to Display a Term

There needs to be a place on a page where you can display the term you assign. This is called a "reference field" and you must edit each content type (e.g., basic page, blog) so the field is present. You do not need to assign terms to every page of that content type. You make the choice of terms, if any, on the actual page.

To add the field:

  1. Click Structure, then Content types.
  2. Click manage fields, for the desired content type, e.g., Basic page.
    create field

  3. Add a name in the Add new field box, e.g., Labels or Tags.
  4. Choose Term reference for field type.
  5. Choose a display widget, e.g., check boxes, a drop down select list, or autocomplete if you wish to add new terms on the fly.
  6. Click Save.
  7. Select the vocabulary to use with this content type.
  8. Click Save field settings.
  9. On this final settings page for your field, scroll down to Label Field Settings and set the number of values.

Applying a Term to a Page

You will now find your new field on any page overlay screen of the content type you just set up. Select which terms apply to that particular piece of content.

apply terms

Using Terms to View Pages

Visitors to your site will see the applied term listed on the bottom left of your content.

terms

Clicking the term will display other pages which also have that term applied. The content will be displayed in the teaser format which displays only a small portion of text. The teaser will show the name of the term in common at the top. A Read more link will show the full content.

clicked term

See Also

IS&T Contributions

Documentation and information provided by IS&T staff members


Last Modified:

August 07, 2020

Get Help

Request help
from the Help Desk
Report a security incident
to the Security Team
Labels:
taxonomy taxonomy Delete
c-drupal-cloud c-drupal-cloud Delete
label label Delete
taxonomies taxonomies Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
Feedback
This product/service is:
Easy to use
Average
Difficult to use

This article is:
Helpful
Inaccurate
Obsolete
Adaptavist Theme Builder (4.2.3) Powered by Atlassian Confluence 3.5.13, the Enterprise Wiki