Let's start with taxonomy. Since this is a way of categorizing content, it makes sense to set this up before we set up the content. The taxonomy options can be accessed from the menu via Administer | Content management | Taxonomy.

Creating the vocabulary

We need to create a new vocabulary to group the terms, which can be done via the Add vocabulary link in the context-sensitive menu.


Add1 vocabulary

The first piece of information we need to enter is to identify the vocabulary:

• Vocabulary name

• Description


Vocabulary name:

| Dinosaur Breed|


Specific breed of dinosaur

Description of the vocabulary! can be used by modules,

Help text:

Select the breed of dinosaur this relates to

Instructions to present to the user vihen selecting terms, e.g.. "'Enters comma l

Let's enter Dinosaur Breed for the name, a Description of a Specific breed of dinosaur and Help text for Select the breed of dinosaur this relates to.

Next, we need to select the Content types which this vocabulary is available for.

I would imagine it would be possible for both pages and stories to be related to specific breeds of dinosaurs, so let's enable those.

Next, we have some generic settings for the vocabulary, which include:

• Tags—which if enabled provide the users a box to enter their own tags into, separated by a comma

• Multiple select—which allows multiple terms to categorize content (this is always true if the tags option is checked)

• Required—which requires the user to select at least one term from this vocabulary for the specific type of content

• Weight—to determine the order of the vocabulary compared to other available vocabularies u Settings

Terms are created by users y,hen submitting posts by typing a comma separated list.

□ Multiple select

Allows posts to have more than one term from this vocabulary (always true for tags].

D Required

At least one term in this vocabulary must be selected when submitting a post.


Vocabularies are displayed in ascending order by weight.

Since a page would only be related to one specific breed, we should leave the Tags and Multiple select unchecked. Some pages and stories may not even be related to a specific breed, so we don't want to require the vocabulary either. We may wish to allow multiple breeds to be selected, for instance, a user posting a story about a T-Rex eating a Brontosaurus. However, this is really a judgment call based on the site we are going to create. We can always change it later if we find a better alternative.

Creating terms and tags for our vocabulary

With our new vocabulary created, we now have some options on the main taxonomy page, next to where the new vocabulary is listed. We can edit the vocabulary, list the terms and add terms to it.


Dinosaur Breed


Page, Story

Operations edit vocabulary list terms add terms

We want to add new terms to the vocabulary, so let's click that.

This provides us with the option to enter a name and description for a term (a name must be entered).

t7 Identification

Term name:


The name af this term.


The name af this term.


A tyrannosaurus rex



A description of the term. To be displayed on taxonomy/term pages and RSS feeds

A description of the term. To be displayed on taxonomy/term pages and RSS feeds

Let's enter the name of a breed of dinosaur and click Save before repeating the process to add the rest of the different breeds that we wish to add.

Although we haven't seen the taxonomy in action yet, we will see it I

shortly when we create some content. I

Creating another vocabulary—free tags

Since we may also want to categorize other content, let's create a new vocabulary called general. Only this time, we should enable the Tags checkbox, to allow users to define their own tags.

0 0

Post a comment