Home

Primary links

  • top o the deck
  • Drupal for Beginners
  • about
  • links
  • give me some sugar

Drupal stuff

  • EDAM
  • STARDOM
  • Question Bank
  • Drupal musings
  • Drupal tips
Home Blogs Drupalace's blog

Key stuff on this site

Easy Drupal Admin Manual (EDAM)

SEO, Traffic and Revenue: Drupalace's Online Manual (STARDOM)

Drupal for Beginners

Subscribe to posts by RSS or email

Subscribe to Drupal Ace by RSS feed RSS feed 

Subscribe to Drupal Ace by Email

Donate towards my web hosting bill! Get a great host!

Share and save

Share/Save

Random piece of content

Create a Story Node

Manuals on this site

  • Easy Drupal Admin Manual (EDAM)
    • Welcome to Your Site
    • First Steps: Please Read!
      • Understanding These Instructions
      • Important Terminology!
      • Best Practices for Site Admins
    • Super Quick Guide (for the experienced and the brave)
    • Logging In
    • Your Administrator Tools
    • Setting Site Basics
      • Setting Site Information
      • Configuring Your Theme
    • Creating Content
      • Node Types
      • Create a Page Node
      • Create a Story Node
      • Create a Blog Entry Node
      • Making Images and Other Files Available
      • Using Text and Image Editors
    • Organizing Your Content
      • Terms, Vocabularies, and Taxonomy: "Tagging" Your Content
        • Taxonomy Suggestions
      • Menus, Links, and Paths: Navigating the Site
        • Content Paths and URLs
        • Creating Links
        • Working with Menus: Administration Form (Drupal 6)
        • Working with Menus: Administration Form (Drupal 5)
        • Creating Menu Items on the Fly
        • Placing Menus on Your Pages
      • Placing Content on pages
        • Creating a page from a Single Node
        • Creating a page from a List of Nodes
        • Setting the Front Page
      • Working with Blocks
    • Maintenance Stuff
      • Maintenance and Construction Notices
    • Other Fun Things
      • Changing Color of Garland Theme
      • Free Aliases!
  • SEO, Traffic and Revenue: Drupalace's Online Manual (STARDOM)
    • Set a Clear Goal
    • Make a Good Site
      • Put out the Welcome Mat
      • Make Great Content
      • Build a Great Brand
      • Make Navigation Easy
      • Tune Site Performance
    • Drive Traffic
      • Promote your Site
      • Get Found with SEO
    • Build a Community
      • Build an Offsite Community
    • Monitor and Improve
    • One-Page Checklist
    • Drupal and the Blogging Starter Checklist
      • Drupal and the Blogging Starter Checklist, Part 1
      • Drupal and the Blogging Starter Checklist, Part 2
      • Drupal and the Blogging Starter Checklist, Part 3
      • Drupal and the Blogging Starter Checklist, Part 4
      • Drupal and the Blogging Starter Checklist, Part 5
      • Drupal and the Blogging Starter Checklist, Part 6
      • Drupal and the Blogging Starter Checklist, Part 7

You said it!

  • Excellent!!

    Hello! I just would like to give a huge thumbs up for the great info you have here on this post...

  • Drupalace wrote:...

    Drupalace wrote:

    ...
  • Thanks for the inf...

    I may not have a chance to test that for a while, but meanwhile I welcome commentary from anyone...

  • Hey, Since I still...

    Hey,

    Since I still see some links here, and the guide is quite good, I thought that I may...

  • Nice article i lik...

    Nice article i like the way you thoroughly wrote it.

more

Drupal Wish #1: Easier Linking to Terms

Submitted by Drupalace on Mon, 2007-07-02 11:01
  • blog post
  • Drupal
  • terms
  • wish

A common newbie question: How do I create a page which, for example, lists all news stories and not other posts?

The proper Drupal response, I believe, requires a small change in mindset. A page that lists nodes (as opposed to a page that simply presents one node) doesn't exist until created on the fly. The proper Drupal question is: How do create a link that returns all news stories?

For anyone not already more well-versed in solutions than I am, here are two ways to do it:

1) Use a specific node type (such as story) for all of your news stories, then use the Views function to create a list of all nodes of that type. Create a menu item linking to that View.

(Views is a rich and wooly topic. Enough on that for now.)

2) Tag all of your news stories with a specific term (like "news"). Create a menu item that returns all nodes tagged with that term. Voila!

The latter is the easier way that I'm most familiar with; I've used it a lot. (For example, the "wishes" link in my primary menu simply returns all nodes tagged with "wish".) And it's not so hard to do. My menu item's link points to "taxonomy/term/34", where 34 is the number Drupal has placed upon my term "wish".

But as you probably know, it's a pain to get that number. You have to go into Categories, click "list terms" for the vocabulary containing your term of interest, and then hover your pointer over the "edit" link for the desired term in the list. See the long URL showing up in your browser's status bar? Parse it for "taxonomy/edit/term/<some number>"; that number is the 'droid you're looking for. Jot down or remember that number; you'll use it when creating the link to that term, as above.

It gets a little worse. Say you haven't even created a term "news" yet. You can't create the menu item now, and later populate your site with stories tagged with a brand-new term "news". You have to first create the term before you can create a link in the menu item.

Yech. For elegance and ease of use, it's a mess of a method that only a Microsoft could be proud of.

Shouldn't there be an easier way? Why can't I call directly upon the term itself in my menu items, such as "taxonomy/term/'news' "? That seems the equivalent of calling upon a term ID# that's uniquely bound to the term word "news", but is far, far easier than going through gyrations to discover the ID#. (The user shouldn't have to care what the ID# is!) And it would allow you to create the menu item first if you wanted (it simply wouldn't return anything until you later did create a term "news").

Am I alone in holding this wish for Drupal?

Drupaliens! What are your Drupal wishes?

Share/Save
  • Drupalace's blog
  • Printer-friendly version
  • Quote

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><br><p> <img>
  • You may quote other posts using [quote] tags.
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options


Relevant Content

The Drupal Ace logo has dealt these content suggestions from the deck.

  • Working with Menus: Administration Form (Drupal 6)
  • Drupal Wish #4: Clearer Terminology through Capitalization
  • Drupal Wish #3: Easier Menu Item Weights
  • Drupal Wish #2: Easier Teasers
  • Test post using MarsEdit 2.4
  • Drupal site recipes
  • Drupal and DreamHost: An Update

Learn Drupal, hands-on

Get the beginner-friendly ebook that teaches community site building via a live case study.

Drupal 6 Ultimate Community Site Guide

Read the review

It's a deal!

Dreamhost dealsDrupal Ace presides over his domain, proudly ensconced in his DreamHost eyrie. Won't you join me?

Promo code deal!

Just enter the code 49ER when you register for an account, and save $49 off the already-low price. No strings!

Read my hosting service review

Drupal mini tip

Got unexpained "access denied" troubles keeping people from your content? Go to admin/content/node-settings, and try the 'Rebuild Permissions' button.

If that doesn't work, see other ideas for access denied for visitors and access denied for admins.

Powered by Drupal, an open source content management system

Copyright 2007 and forever after. Made with Drupal, of course. On OS X, of course. Served up by DreamHost. DreamHost

RoopleTheme