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

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

Maintenance and Construction Notices

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

Recent comments

  • Deleting cookies

    Good point; thanks! Deleting cookies and/or caches, depending on the problem at hand, is a part...

  • It worked

    adding $GLOBALS['tempUser'] = $user; worked but I find it worth noting that I had to delete...

  • very good document...

    very good documentation for beginners!!!!!! thanks!!

  • del penitential 62

    strike out abject
    eliminate penitent 5

  • Chat

    Thank you a lot about very beneficial to my work was very useful thank you

more

paths

Path as redirect

  • paths
  • tip

Want a quick redirect, without manhandling system files? Just use the core Path module: on the "URL aliases" form (/admin/build/path), complete 'Path alias' with the path you expect visitors to use, and complete 'Existing system path' with the path you'd like to send them.

http://11heavens.com/icon-to-the-left

Click here and read more!
  • Drupalace's Quotes

Free Aliases!

  • admin
  • Drupal
  • paths

Below are useful built-in aliases, ready to take you to important pages. Just type the alias into your browser's address bar, after <your site domain>.

Drupal aliases

The following aliases come courtesy of Drupal:

User login page

The first page you need as an administrator!

/user

Registered user pages

A list offering links to each individual user page:

/profile

You can also get to individual user pages by user number. The chief "ID 1" administrator's page is at /user/1; later users have later numbers.

/user/1, /user/2, /user/3, etc. 

Main Administer page

The all-important page containing links to all the forms you need to manage your site.

/admin

Contact form

Here's a ready-made contact form for visitors, if your site is set up to use it.

/contact

Forums

Your site's main Forums page, if the site is set up to use Drupal's built-in forum capabilities.

/forum

Polls

Your site's main Polls page, if the site is set up to use Drupal's built-in poll capabilities.

/poll

Blogs

All blogs on the site.

/blog

Front page

The site's default front page, if a specific front page has not been set. (It's "/node" because the front page, by default, is a list of all front-page-promoted nodes.)

/node

Nodes

Individual nodes, using the numbers automatically given them upon creation.

/node/1, /node/2, /node/3, etc.

Tagged content

Page listing all nodes tagged with the Term bearing the number. See Terms, Vocabularies, and Categories: "Tagging" Your Content.

/taxonomy/term/1, /taxonomy/term/2, etc.

Post tracker

List of posts, in order of posting.

/tracker 
  • Add new comment
  • Quote

Content Paths and URLs

  • admin
  • content
  • Drupal
  • paths

How do people get from one page on your site to another? Links, links, links!

But what is a link? It's just an instruction for the browser to jump from the current page address to a new page address.

You can create links to any page whose address you know. So how to you find, or create, the address for a page? Here's your guide. (And if you already know the address for your target page, and are ready to create a link to it, jump ahead to Creating Links.)

One note: Much of the following discussion pertains to Drupal sites using two common modules (Path and Pathauto). That most likely includes your site as well, but if the below doesn't seem to apply, ask your main administrator about the setup of the site.  

Path and URLs

Every node you create in Drupal automatically gets a path – an internal "address" that identifies it. Drupal automatically gives these paths names that aren't too pretty, such as taxonomy/term/7 or node/53.

A URL is the whole address, beginning with your site domain, that a browser uses to reach a page. The above node with path node/53 could be reached by visitors at www.drupalace.com/node/53, for example.

Prettier paths: aliases

The above node/53 is an ugly path that creates an ugly URL. There's nothing technically wrong with that at all, but many people like nicer-looking addresses. (Supposedly, so do the search engines.) Fortunately, you can define a nicer, alternate path – what's called an "alias" – when creating a node.

(A note: Drupal documentation sometimes uses the word "path" to mean the content's address in general, and sometimes to mean an alias. I'll use "path" to mean the internal address of a content item, and "alias" to mean an alternate path. These are pretty standard usages, so no capitalization is needed.)

An example of an alias: If your 'Corporate Vision' page has the path node/53, you can also give the page an alias such as vision. The page can then be reached at the URL <your site domain>/node/53, or at the alternate URL that uses the alias, <your site domain>/vision.

Setting an alias

As described under Create a Page, you can easily create an alias when creating or editing a node. Look for the field 'URL path settings', and type in an alias. Stick to regular letters, numbers, hyphens (-) and underscores (_) in your alias; avoid other characters, including spaces.

Managing aliases

If you want to change a node's alias, just edit the node to do so, as above.

You can't give the node more than one alias that way, though. If you'd like to do that, and otherwise manage aliases in bulk, head here:

Navigation » Administer » Site building » URL aliases

List

Pretty simple: a list of aliases, followed by the "real" path that Drupal created (like node/13), followed by options for editing or deleting the alias. There's also a filter provided for quickly finding the aliases you're looking for.

Add alias

Here's where you create an alias. Enter the Drupal-created path into the first field, and your desired alias in the second. Follow the rules under Setting an alias above.

Delete aliases (Drupal 6)

Here you'll find checkboxes for mass deletion of large groups of aliases.

Automated alias settings (Drupal 6)

This is a great tool if you want to let Drupal create aliases for you, based on rules you set up. See discussion below.

Automated alias creation

How would you like your site to generate an alias for you automatically whenever you create new content? That can be a very useful thing, and a great way to make sure aliases for multiple nodes use a consistent format – an especially important concern if you have multiple users creating content. That is, you don't want one day's news article to have the alias news/12/24/Christmas_Eve_Events, the next day's to look like news/1225/Xmas-dinner-party, and the next day's to appear as news_story/Dec-26-the-hangover. Let Drupal automate those aliases, and they'll hew to a consistent format.

Under Drupal 6, the administration tools appear under the "Automated alias settings" tab of the "URL aliases" administration form, as noted above. Under Drupal 5, you'll find the form elsewhere:

Navigation » Administer » Site configuration » Pathauto

There are a lot of settings, and an overview will have to wait for later. Fortunately, the form's instructions are fairly self-explanatory and you should be able to work things out.

Finding a path

It's handy that you can set an alias for any new content you create, but how do you find the existing path or alias for existing content?

Check the browser's address bar

This is the most obvious method: open the page you're interested in, and check its URL in your browser's address bar. The part of the address remaining after <your domain name>/ is the page's path. Copy or otherwise make note of it, and you're ready to use it in links.

Check master lists

Your administration forms contain a number of "master lists" of content and paths. Once you're at any of the lists below, clicking on the item of interest, or just "mousing over" it and seeing the URL that appears in your browser's status bar, will let you know the item's path.

Master list of all content

Navigation » Administer » Content management » Content 

Master list of all aliases

Navigation » Administer » Site building » URL aliases

Master list of all comments

Navigation » Administer » Content management » Comments

Getting a Term's path

A link to a whole Term can be a very useful thing. Drupal automatically creates a path for each Term – which, more specifically, means a path that tells Drupal to create a page listing all the content tagged with that Term.

You can't just use the Term name, like 'product', as the path; you need to use the path that Drupal gave the Term. Unfortunately, a little digging is required. Here's how to do it:

Navigation » Administer » Content management » Taxonomy

(In Drupal 5, that last part is "Categories", not "Taxonomy".) 

As discussed in Terms, Vocabularies, and Taxonomy: "Tagging" Your Content, that's the list of Vocabularies, each of which is a collection of Terms. Click 'list terms' for the Vocabulary containing the Term you want. The list of Terms will appear. Click or "mouse over" the Term you want; you'll see the the URL containing the Term's path.

Example: You want a menu item to link to the Term 'technology', listing all nodes tagged with that. Go to the Taxonomy form, as above, to see your Vocabularies. There's one named 'Content Topic', which contains the Term you want; click 'list terms' for that.

There, on the list of Terms, is 'technology'. Click it. It should return the page we're looking for, listing all 'technology'-tagged nodes. Note its URL, which may be something like <your site domain>/taxonomy/term/12. The path taxonomy/term/12 is what you can use as the path in menu items or other links.

  • Add new comment
  • Quote

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

Drupal mini tip

The Book module creates "Printer-friendly version" at the bottom of Book pages. If you hit that link from a page with child pages, Drupal creates a printer-friendly page from that page and its child pages. If you hit the link from the Book's top page, you get the whole book in a single page!

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

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