Selecting a Taxonomy Term when Creating Content

Based on our actions in the previous step, creating a new content item using the Basic page content type will now present the author with a list of values that they can select from to categorize the content they are authoring. To test this feature, click on any of the "create content" links that we have described previously (such as the create content link in the gray bar near the top of the page). From the list of content types listed, click on the "Basic page" content type. When the Basic page creation page is displayed, notice that there is a new select list field where the author can select the type of sport to assign to this content item (see Figure 4-9).

Figure 4-9. Creating a basic page

Clicking on Save results in Drupal displaying our new page with a new field, "Associated Sport," with Basketball listed as the option that was selected.

To demonstrate the power of taxonomy, create two additional pages using the same taxonomy term you selected in the first example. On the final content item that you created, once you have saved it, click on the term that you used. In Figure 4-10 you would click on Basketball.

Figure 4-10. A new content item assigned to the Basketball taxonomy term

The result of clicking on the term is a page that lists all other pages that were created and assigned to the Basketball taxonomy term (see Figure 4-11).

Basketball Mt

A term used to categorize content associated with the sport of basketball.

Col legate Woman's Teams to Compete for National Title

Type of Sport:

Basketball

Peilentesque congue, nisi sed iaculis peilentesque, neque cos molcstrc massa, a marcsuada diam augue rhoncus felis! Morbi eu mollis arcu. Etiam nisi erat, tincidunt sit amet blbendum id, dapibus ac quam. Aliquam cgct justo a metus vi verra molestic. In auctor, diam vitae eSemcntum inter dum, diam nulla peilentesque eros, ut volutpat turpis lectus nec nibh. Suspendisse purus nisi, malcsuada ferrmentum vulputate eget, tincidunt eu justo, Cras feugiat porta feugiat. Du is dictum, nulla et varius vi verra, orci neque vulputate élit, nec varius ipsum li bono at diam.

Read more

2012 Olympics to Exclude Basketball

Type of Sport:

Basketball

Peilentesque congue, nisi sed iaculis peilentesque, neque eros molcstrc massa, a marcsuada diam augue rhoncus felis! Morbi en mollis arcu. Etiam nisi erat, tincidunt sit amct bibendum id, dapibus ac quam. Aliquam cgct justo a metus viverra molcstic, In auctor, diam vitae ciernen tum interdum ; diam nulla peilentesque eros, ut volutpat turpis lectus nec nibh. Suspendiste purus nisi, malesuada fermentum vulputate eget, tincidunt eu justo, cras feugiat porta feugiat. Qu is dictum, nulla et varius viverra, orci neque vulputate elit, nec varius ipsum libero at diam.

Read more

Portland Trailblazers Extend Winning Streak

Type of Sport:

Basketball

Peilentesque conguc, nisi scd iaculis peilentesque, neque eros molestic massa, a malesuada diam augue rhoncus felis! Morbi eu mollis arcu. Etiam nisi erat, tincidunt sit amet bibendum id,

Figure 4-11. All pages assigned to the term Basketball

Drupal automatically renders all of the articles that are associated with the selected term. The list is sorted in date/time order, with the most recently added basic page listed at the top of the list. You will also notice an RSS feed icon at the bottom of the page. Drupal also created an RSS feed for all the pages that are associated with this taxonomy term. Clicking on the RSS icon will render the list as a standard feed.

Article Marketing Gold

Article Marketing Gold

Discover How You Can Use The Huge Power of Article Marketing To Drive Highly Targeted Traffic To Your Website and Instantly Become THE Person Your Prospects Want To Buy From.

Get My Free Ebook


Post a comment