
In Drupal, Taxonomy is often explained as “the way you add tags to articles.” That is true in the narrowest sense, and it is also why so many Drupal sites end up with a bloated, contradictory tag list six months after launch. Under the hood, a taxonomy vocabulary is a managed set of term entities that power Views filters, Search API facets, Pathauto URL structures, and access or editorial workflows.
The architecture decisions you make before editors start typing terms decide whether your site stays navigable or turns into a swamp of near-duplicates like billing, Billing, and payments.
What Drupal Taxonomy Actually Gives You
Drupal separates a vocabulary (the container, exported as config like taxonomy.vocabulary.product_area.yml) from terms (the individual items inside it, which are stored as content entities in taxonomy_term_data). Because terms are full entities, they can carry their own fields—icons, short summaries, owner emails—and generate dedicated listing pages at /taxonomy/term/%.
That distinction matters during deployment too. When you run drush cex, Drupal exports the vocabulary definition and the entity reference field config, not the terms themselves. If your Views or custom code hardcode a specific numeric term ID (tid), moving config from local to staging can quietly break unless you create terms consistently or look them up by UUID or name.
Start With the Classification Question
Before creating a vocabulary, finish this sentence on paper: “We need to classify ___ so that ___ can ___.” For example: “We need to classify support articles by product area so customers can filter the help centre and support staff can route tickets.”
If the second half of your sentence changes mid-thought, you probably need separate vocabularies. “Product area,” “Target audience,” and “Review status” are completely different concepts, even if they all render as little pills at the top of an article. Dumping them into one catch-all Tags vocabulary makes every filter ambiguous.
Flat Lists vs Hierarchies
Keep a vocabulary flat when terms are peers—such as a small list of audiences (Customers, Staff, Partners) or content formats. Only turn on hierarchy when the parent-child relationship actually helps users browse or filter from broad to specific, like Networking -> DNS -> Cloudflare or Ingredients -> Vegetables -> Tomatoes.
Do not build a three-level tree just because nested dropdowns look neat in a wireframe. Deep hierarchies are harder for editors to pick from consistently and require extra thought in Views (for example, deciding whether filtering by a parent term should include child terms via Content: Has taxonomy term ID (with depth)).
Free Tagging vs Controlled Lists
On the content type’s Entity Reference field, Drupal lets you choose between an Autocomplete (Tags style) widget—which can auto-create new terms on the fly (auto_create: true)—and a controlled Select list or Checkboxes pointing to pre-approved terms.
Free tagging feels convenient during early content entry, but without editorial review it reliably produces singular/plural duplicates, typos, and overlapping synonyms. For core navigation and Search API facets, use a controlled vocabulary curated by site builders or lead editors. If you genuinely need open tagging for discovery, keep it in a separate secondary vocabulary and schedule a monthly cleanup.
A Safe Design and Rollout Workflow
First, inventory the actual Views, search facets, or URL patterns (pathauto tokens like /help/[term:name]) that depend on the vocabulary. Every term should exist to power a real user or editorial need, not because “we might filter by it someday.”
Name the vocabulary clearly—Audience beats Labels—and fill in its description field with a one-sentence inclusion rule and two examples so future editors know what belongs there. Write down simple formatting rules alongside it: singular vs plural, title case vs lowercase, and what happens when a term is retired.
Next, create a small test set of 5 to 10 realistic terms, including one parent/child pair (if hierarchical) and one tricky edge case, then attach the taxonomy_term reference field to your content type. Set cardinality intentionally: maybe an article must have one primary Product Area (required, cardinality 1) and zero or more Audiences (optional, unlimited).
Before importing hundreds of rows, check two things that teams routinely skip:
- Default term pages: Visit
/taxonomy/term/[tid]. Does it show a clean, well-ordered View, or an awkward page with one outdated post? If you do not want public term pages, disable or override the defaultTaxonomy termView and configure Pathauto/metatags accordingly. - Permissions: Check
/admin/people/permissionsfor who canCreate terms,Edit terms, andDelete termsin that specific vocabulary. Letting every author create or delete terms in a navigation vocabulary is a governance bug waiting to happen.
Finally, document how to merge or retire terms. If a term appears in public URLs, deleting it creates 404s unless you have the Redirect module pointing the old alias to the replacement term.
A Concrete Example: Support Knowledge Base
Suppose you are building a support hub covering account access, billing, and API integrations. Create an Area vocabulary for those broad topics, using a shallow hierarchy only where subtopics genuinely help readers narrow down results. Create a separate Audience vocabulary (Admins, Developers, End Users) instead of mixing roles into Area.
Each Help Article node references one required Area and one or more Audience terms, both using controlled select lists or constrained autocomplete. Now a View or Search API facet can filter cleanly without wondering whether billing, Billing, and invoices mean the same thing.
Related Drupal Guides
- Drupal Search API: Design the Index Before You Tune the Search
- Drupal Views Contextual Filters: Make Listings Respond to Their Context
- How to Set Up Drupal and MySQL on Your Local Machine Using Docker: A Complete Step-by-Step Guide
Treat taxonomy terms as part of your site’s user interface, not an afterthought. Every extra vocabulary or term adds translation, testing, and maintenance weight—keep it lean, clear, and governed from the start.