How can I use taxonomies to organize and classify content in Drupal?

Kathleen Farley
A free video tutorial from Kathleen Farley
aka Robobunnyattack! + co-founder of Audiohackr
4.6 instructor rating • 9 courses • 17,086 students

Lecture description

This tutorial screencast answers the question: How can I use taxonomies to organize and classify content on my Drupal site?

Learn more from the full course

Create, Update and Manage Your Own Website Using Drupal 7

Use Drupal 7 to build your own website in this beginner-level course. Learn all about themes, blocks, modules, and more!

06:58:05 of on-demand video • Updated August 2016

  • In this course, we'll explore the many configuration options, functions and features available in the self-hosted version of Drupal
  • We'll focus on WHY and HOW things work in Drupal –– so you can develop an intuitive understanding of how to use Drupal
  • By the end of this course, you'll be able to configure, edit and update a Drupal site with confidence, following best practices every step of the way!
English [Auto] What is taxonomy mean when it comes to Drupal. Well the best way to really explain about taxonomy and how useful it can be on a Drupal site is really just seen in action. So why don't we go ahead and do that. What to do is I'm going to create a new piece of content here I'm just going to go ahead and create a new article and let's make this article let's say this is pretend. This is a band web site and we're we're writing an article about how we are creating a new video new video in the works. There we go. And so let's just add some dummy text in here. Go ahead and. Yeah. There you go. You'll notice we've seen this before but we've kind of glossed over it in the past tags. The whole idea of tags and in the past what we've done is we've just kind of put a different bunch of different keywords that more or less describe the content. So you're going to do here so I'm going to go say and say videos because this article is presumably about a new video that we've created. How about tech news and then I don't know let's just stick with video and news. Let's stick with that. OK. So what I've done here is I've entered a comma separated list of words to describe the content. If I had a term that that included two different words like let's say whoops let's say banned news. I would basically I can put that together and just separate all the different key words or key phrases with commas and derful will recognize that as a as an actual single phrase it's not going to separate out the word banned in news. So that looks good. We're going to go ahead and say that I won't bother adding an image or anything. Well notice we've seen this before but will notice as soon as this gets published and scroll down to the bottom here the way this default view. OK we could add it the way this looks. But in this default view we see that Drupal adds a line at the bottom here with tags. And this is nothing new. You've seen this before probably on many other Web sites. Tags here and we see that each of these are links we've got a tag called videos a tag called news and a tag called Band news here. Never mind about that being a little over time. This is just an example. What do you think would happen if we clicked on one of these. Well the intuitive you know the intuitive answer here is that if I click on one of these I expect anyways anybody who's used the Web often enough probably expects to be brought to a page where any content that has this tag will be listed there so let's give this a shot I'm going to go ahead and click on bad news. And sure enough we see and this is if you remember from before this is actually the teaser view OK which we can edit that as well too. We see every article that we've published on this site that happens to be tagged banned news shows up here and then we see this article that we wrote a couple of weeks ago welcoming Jane or new guitarist. And here is our new article we just wrote now. New video in the works. OK. And likewise I could click on videos I can click on news and there are other articles on this site with that tag. It's going to put them in a list like here and I can't I can't edit the way this teaser looks like and put less text and more text can change. You know the location of the image all sorts of things like that. So why is this useful. OK. The reason this is useful is that this is yet another way that your user can interact with the content on your site and navigate through the content on your site. We tend to think of you know when we when we're just when we're not used to web development when we're not used to designing Web sites we tend to think you know it's hard for us to imagine how people actually interact with your content. You know the obvious thing would be that they use the search box. Well not everybody does. Some people do. So people don't. The other thing too is that using a search box sort of depends on you knowing what it is that you're looking for. OK. Whereas if I'm in the middle of reading this article and I see down at the bottom Oh videos I might not have thought to do a search for videos. And so for me to be able to just click on this now I'm suddenly interested in the possibility of seeing any other news that relates to videos. So it's a way to sort of trigger behavior in the user but behavior that they won they still control what they click on obviously. The other thing you might think of in terms of navigation is even if some people are search dominant users they'll use the search box a lot. Some people really just like to navigate through things. And so they'll be clicking on these links up here. But for obvious reasons you can't have a link up here to every single page on your site that would just get really out of hand. You have your main content up here. But then as people explore the content on your site the expectation is that if they are now interested in learning more about these other topics then they have the opportunity to click through on these tags here. Now with that said it is possible to create tabs up here that will have that that will basically be like a predefined list of content that just maybe are just tagged a certain way. So I mean but that's that's a little beyond what we're what we're doing in this screencast. But I just wanted to do was introduce this concept of taxonomies. So the technical answer to the question what is a taxonomy is really the taxonomy is just a practice of classifying content and so therefore using tags. This is an example of taxonomy in Drupal and in Drupal in particular taxonomy is what allows you to connect different pieces of content together how you can basically create relationships between them you can classify all the content on your website. And this is more important than you think. A site that is well-designed a site that people find easy to use. Invariably it's because the content it really is connected together in a logical and intuitive way and usually that's because the design or the developers actually spend some time thinking about OK how are we going to make things connect to each other. So how do you go about managing all this taxonomy all this tagging and categorization and classification of the content. Again you click on the structure button up here constructor's our favorite menu item and down here will see this is the one that we haven't seen yet. Taxonomy. And this is and to write it as Drupal is telling you here this is where you manage taking categorization in cost of your content. And so you would click through on there and we'll see in here that we currently have one vocabulary and that's how rises all the taxonomies on your Web site all the methods of categorizing content it allowed Drupal allows you to create and have different vocabularies. And in this case we call the default vocabulary that's available to you. Is this vocabulary called tags. Well that's not terribly surprising. We know what techs are We've already been using tags. If I were to actually list the terms in here guess what we would say. What is this. These are all the tags that we've used so far on our site. And you might be wondering how did Drupal know will drippers pretty smart every single time you add a new tag to a piece of content. Drupal adds it to this catalog of tags here so very smart keeps track of all that for you. And then of course if I were to click on that we've already done this but clicking on bad news brings you to a page that only lists that tag. So you see how this is a really cool way of managing relationships between kind of managing the navigation between related pieces of content. Not really you want people to be able to do that you want. We all want it to be effortless for your users to be able to surf through various pieces of content according to what their interests are. So in the next screen castable work a little bit more with tags and we'll see what else we can do with different taxonomies and creating new vocabulary but for now this is a good intro hopefully to what the the idea of a text on me and seeing it in practice here with the use of tags right down here we understand how to do this. This is really nothing new it's just really it's just you know the terms you need to get used to that's all. OK so that's it for this particular screencast I hope that that was helpful. Thank you very much for watching and I'll see you next time.