New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Managing tags and taxonomies

From: Drupal Gardens Essential Training

Video: Managing tags and taxonomies

In the video about creating and managing content types, we talked a little about the differences in Drupal Gardens between, say, a news item and a blog entry. In this video, you'll learn how to give nodes a different kind of identity through what's called tags. You could say that a content type defines a node's format--that is, it says if the node has certain fields, and they are displayed in this way, and so on. But tags define a node's content. The best way to explain it is with an example. For our site, we're listing different California tours using the tour content type we defined earlier, which has the length of the tour and the price and the picture of the tour.

Managing tags and taxonomies

In the video about creating and managing content types, we talked a little about the differences in Drupal Gardens between, say, a news item and a blog entry. In this video, you'll learn how to give nodes a different kind of identity through what's called tags. You could say that a content type defines a node's format--that is, it says if the node has certain fields, and they are displayed in this way, and so on. But tags define a node's content. The best way to explain it is with an example. For our site, we're listing different California tours using the tour content type we defined earlier, which has the length of the tour and the price and the picture of the tour.

But let's say that we want to group those tours by theme so that people who like to backpack can find all the walking tours. That's what tags are good for. To get started, I first have to decide what my categories are going to be. For that, we create something called a vocabulary that describes what we're categorizing. Then we'll fill it with our options, which are called terms, and you can see this by going up to Structure, scroll down to Taxonomy. Drupal Gardens comes with two vocabularies already in place: Tags is a general vocabulary that's used throughout the site, and Forums which Drupal Gardens uses internally to set up discussion boards. And you'll find out more about that in the video about starting discussion forums.

We're going to add a different vocabulary, which will be called Type of tour. We could add a description if we like, but I'm just going to leave it alone and click Save. Our next step is to add terms to that vocabulary. Don't worry if this is a bit confusing right now; it will be clearer when we actually go and create some tour nodes and start adding those terms to the tour nodes. But first, let's go ahead and add those terms by going over here and clicking add terms. The first one will be called Backpack California.

I won't put in the description; I'll just go down to the bottom and save. We then come back to the Add Term screen because usually when you create terms, you create many of them all at one go. The next one we'll be called Nature watch, scroll down and save it again, and finally California hotsprings, scroll down and save it. In order to use these tags in a content type, we have to go back and edit the content type. Now remember, we're going to use these on our tour content type, so we go up to Structure and Content types, then down to Tour and manage fields.

As you remember, we added a few fields earlier, and that's exactly what we're going to do now. We'll call it tour type, tour_type, like so, and then under field type, there is actually one specifically for taxonomy terms called Term reference, and then we have a few options as to how we're going to select those terms. I'm going to leave it as Select list, although if you set up your own terms, you'll probably want to play around with these and decide which one is best for you. Also, you'll learn more about these types by watching my video "Drupal Essential Training," where I go into it in a little bit more detail.

Scroll down and click Save. The next question is which vocabulary is going to be the one from which these terms are selected? Of course, since we're going for Tour types, we'll select the Type of tour, and save field settings. On this page, I'll actually just leave everything in its default value, and save settings. Finally, I'll move this up so it's near the length and price, just because it's more convenient on the node form. Scroll down and click Save. Great! Now, we can start to categorize our tours. But you might remember, if we go to content, we only have one tour in already. That's the Big Sur Retreat.

So I'm going to add a couple more. If you're a lynda.com premium subscriber or got this course on a disc, you have the exercise files, which include one file called other-tours. I'm going to use that to copy and paste into my Tour content type. Go down to body and paste. Then our title, let's say that that's a two-day trek. Let's say that the price is 250, and the tour type is Backpack California.

Scroll down and save it, and I'll leave the photo blank; it'll give us that default photo. And then I'll create one more under Tour. Once again, I'll pick that from our exercise file, Channel Islands Excursion. This one is 1 day at $150, and it's considered a Nature watch, and save. Great! Now if we go back to our content list, we see that we now have three tour types.

I'm going to just go back and change that Big Sur Retreat so that we add some type of Tour type to that one. I'll call it Backpack California and save it. Great! Now let's take a look at any one of those-- let's say the Big Sur Retreat. As we scroll down, we see our tour type right here, that Backpack California that we used tag it. When we click on that, we'll see a page that chose all of the Backpack California tours. Furthermore, the URL that goes to that page is stable and simple, so you can create a menu item, and you'll learn how to do that in the video about understanding menus.

In short, tagging content makes it easy for visitors to just click around to see content that most interests them. Tags become even more useful as your site grows into hundreds or even thousands of nodes, and you have dozens of tags. Now tagging does take a little time to set up and a bit more time whenever you create a node, but for making your site a lot more user friendly, it's really worth it.

Show transcript

This video is part of

Image for Drupal Gardens Essential Training
Drupal Gardens Essential Training

65 video lessons · 11709 viewers

Tom Geller
Author

 
Expand all | Collapse all
  1. 29m 56s
    1. Welcome
      1m 39s
    2. Previewing the finished project
      1m 29s
    3. What's new in the late 2011 update?
      5m 28s
    4. What is Drupal?
      5m 8s
    5. What is Drupal Gardens?
      5m 57s
    6. Getting started with Drupal Gardens
      5m 35s
    7. Getting help
      4m 1s
    8. Using the exercise files
      39s
  2. 17m 40s
    1. Using the administrative overlay
      2m 54s
    2. Using the dashboard, toolbar, and shortcut bar
      5m 36s
    3. Touring the newly created site
      3m 55s
    4. Configuring the site
      5m 15s
  3. 59m 47s
    1. Creating and managing content
      11m 11s
    2. Creating and managing content types
      10m 35s
    3. Embedding YouTube videos and other media
      4m 5s
    4. Subscribing to RSS feeds
      4m 49s
    5. Categorizing RSS feeds
      5m 1s
    6. Managing tags and taxonomies
      5m 50s
    7. Creating dynamic pages with simple views
      4m 29s
    8. Creating complex information collections with Views
      8m 59s
    9. Creating image galleries
      4m 48s
  4. 37m 50s
    1. Working with blocks
      10m 26s
    2. Setting up rotating banners
      7m 45s
    3. Understanding menus
      7m 27s
    4. Setting up contact forms
      7m 7s
    5. Adding and removing functionality
      5m 5s
  5. 54m 54s
    1. Managing users
      6m 28s
    2. Adjusting user permissions
      6m 35s
    3. Managing comments
      7m 7s
    4. Slowing spam
      5m 20s
    5. Starting discussion forums
      9m 3s
    6. Creating blogs
      4m 41s
    7. Setting up mailing lists
      4m 50s
    8. Allowing users to rate content
      4m 21s
    9. Using best practices for online clubs
      6m 29s
  6. 44m 35s
    1. Getting feedback with webforms
      6m 14s
    2. Publishing RSS feeds
      6m 40s
    3. Taking advantage of social media
      9m 33s
    4. Emphasizing external links
      2m 44s
    5. Improving search engine optimization (SEO)
      7m 30s
    6. Internationalizing sites
      8m 6s
    7. Tracking site usage with Google Analytics
      3m 48s
  7. 34m 40s
    1. Understanding Drupal themes
      5m 44s
    2. Understanding the Theme Builder
      5m 25s
    3. Switching, saving, and copying themes
      7m 13s
    4. Introducing custom CSS
      6m 51s
    5. Refining selections in the Theme Builder
      5m 48s
    6. Exporting themes
      3m 39s
  8. 48m 31s
    1. Changing the site's color palette
      2m 32s
    2. Changing the site's main logo and favicon
      5m 22s
    3. Changing the column number and arrangement
      5m 7s
    4. Adding background colors and images
      6m 29s
    5. Changing element spacing and borders
      6m 11s
    6. Adjusting typography
      4m 24s
    7. Using fonts from outside sources
      5m 7s
    8. Inserting raw CSS code into themes
      6m 57s
    9. Adding visual effects with JavaScript libraries
      6m 22s
  9. 14m 18s
    1. Finessing theme design
      7m 51s
    2. Eight ideas for modifying themes
      6m 27s
  10. 23m 38s
    1. Monitoring sites
      4m 11s
    2. Duplicating and deleting sites
      4m 23s
    3. Adding custom domains
      3m 48s
    4. Using exported sites outside of Drupal Gardens
      3m 46s
    5. Hosting exported Drupal Gardens sites
      7m 30s
  11. 51s
    1. Goodbye
      51s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold

Are you sure you want to delete this note?

No

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.