Syndicate

Feed

path

Jun
16

Simple redirect using the path module

You can use the path module to force a simple redirect in Drupal. Say you have a Drupal site with only one blog. When people access the page myWebsite.com/blog, you may actually want them to see the page at myWebsite.com/blog/x where x is the ONE blogger user hi-dee. (The page at myWebsite.com/blog has for title Blogs.) A simple redirect is achievable using the path module, part of the default Drupal distribution. Read more →

Feb
21

Drupal internal path versus url alias

The attached pdf document explains the difference between :

  • a url
  • a translated url
  • a url alias, and
  • Drupal’s internal path
 Read more →

One file is attached to this posting. Login or register to download this file.


Feb
18

Where are we ?

Say we are in a block. Or say we are in a node’s body or teaser. We may ask ourselves : where am I ? On this page, whichever page, is there a node displayed ? If so, which node is it ? Or is there a list of nodes displayed ? If so, what kind of list is it ? Is it a list of nodes who share the taxonomy term “news” ? To answer these questions, one needs to understand Drupal’s path system. Read more →

Feb
18

Drupal’s coder lost in space

Coder's guide to drupal's user and pathThis article is a coder’s apprentice guide to answering the question Who am I ? in drop all Drupal’s Content Management System, releases 5 and 6. While we’re at it, we’ll also answer the question Who is he or she ? with regards to any user — other than the one currently browsing the CMS. Finally, we’ll answer the question where are we ? as in : what is the “node” currently displayed on the page. Is there a node on the page, many, or none whatsoever ? Read more →

Feed