Categorise content using taxonomy
Disclaimer: The content in this video remains relevant to Drupal 10 customers. An updated version of this training video is in the works and will be available soon.
Transcript
Introduction
Welcome to the GovCMS Content Administration Training series.
Hi, I’m Ivan from Salsa Digital and in this video, you’ll learn how content is categorised in GovCMS using the taxonomy system. We’ll cover the following two topics:
- How to create and manage taxonomy terms
- How to categorise pages from the content edit form
Create and manage taxonomy terms
The taxonomy system in GovCMS is used to categorise content. You can see all the category types, or as they’re called in GovCMS vocabularies, by going to Structure and clicking taxonomy. You’ll need to have the content author or the content approver role to access this page. GovCMS comes out-of-the-box with four vocabularies. But there’s a good chance your site will have extra vocabularies because it’s not uncommon to create custom ones. If we click on “List terms” on “blog articles categories”, we can see all the category items, or as they’re called in GovCMS, taxonomy terms. From this page, we can see all the available terms and we can create new ones. Just click on Add term. I’ll enter “Drupal” as the name and click on Save. And now if we go to the list, we can see the new term.
You can also edit and change the name of existing taxonomy terms. Just click on Edit, change the name and click on Save. And this is the great thing about the taxonomy system, none of the names are hard-coded. If you need to change any of them, come to this page and edit them.
How to categorise pages
To categorise a page, we’ll need to do it from the content edit form.
- This “Blog article categories” is only used on the Blog article content type
- Event categories, only on events
- Media tags are used on media entities
- News categories are used on the “news and media” content type
Let’s go to Content and edit a blog article. If we scroll down we can see the “Categories” autocomplete field. We can now select one of the terms in the vocabulary.
Let’s go ahead and search for “Drupal” from the autocomplete field, select and click on Save. Now if we go back to the page, we can see that “Drupal” has been selected.
Recap
Let’s now recap what we covered in this video.
First, we looked at how to create and manage taxonomy terms and finally, you learnt how to categorise a page using the content edit form.