Taxonomies
According to Drupal.org - Taxonomy:
Taxonomy is used to classify website content. One common example of taxonomy is the tags used to classify or categorize posts in a blog website; the farmers market website could use an ingredients taxonomy to classify recipes. Individual taxonomy items are known as terms and a set of terms is known as a vocabulary
Technically, taxonomy terms are an entity type and the entity subtypes are the vocabularies. Like other entities, taxonomy terms can have fields attached; for instance, you could set up an image field to contain an icon for each term.
An individual vocabulary can organize its terms in a hierarchy, or it could be flat.
Taxonomy terms are normally attached as reference fields to other content entities to provide categorization of content.
Adding a New Vocabulary
To add a new vocabulary to your Taxonomy list:
Navigate to Structure
-> Taxonomy
-> Add vocabulary
.
Adding a Term Reference outdated
Navigate to
Structure
->Content types
->Manage fields
->Add field
.Pick
Taxonomy term
from the dropdown and provide a label.Click
Save and Continue
.Select the type of item to reference.
Taxonomy reference
.Click
Save field settings
.Fill out the necessary fields.
Click
Save settings
.
Adding New Terms to Your Vocabulary
To add new terms to your Vocabulary:
Navigate to Structure
-> Taxonomy
-> List terms
-> Add term
.
Free Tagging
Allows new terms to be created right on the content editing form.
To enable the ability to add terms while editing content:
- Navigate to
Structure
->Content types
->Manage fields
. - Click
Edit
for your Term Reference field. - Check
Create referenced entities if they don't already exist
. - Using the dropdown, choose the vocabulary your new terms will be saved to.
Questions
What is a taxonomy in Drupal, and how are vocabularies and terms structured within it?
Taxonomy is a system for classifying content. Vocabularies are sets of terms, and terms are individual items within these vocabularies. Vocabularies can be hierarchical or flat, and terms can have fields attached for additional information.
How can you add a new vocabulary or terms to an existing vocabulary in Drupal?
To add a new vocabulary, go to Structure > Taxonomy > Add vocabulary
. To add terms, navigate to Structure > Taxonomy > List terms > Add term
.
What is free tagging in Drupal, and how can it be enabled for taxonomy term references?
Free tagging allows users to create new terms while editing content. To enable it, edit the Term Reference field under Structure > Content types > Manage fields
and check the option to create referenced entities if they don’t exist.