[development] Human readable taxonomy URLs

Dave Cohen drupal at dave-cohen.com
Mon May 22 06:20:44 UTC 2006


You could generate technorati friendly URLs, without the overhead of pathauto 
by generating a path like "taxonomy/term/15/ipod" or 
"taxonomy/term/16/Gravity".  That is, just append the human readable term 
when generating the link.  In many cases Drupal's menu system would show the 
desired page without any changes.  (Those cases being where the callback does 
not expect args).

-Dave

On Sunday 21 May 2006 00:34, Dries Buytaert wrote:
> Essentially you have to generate your URLs like this:
>
>      * <a href="http://apple.com/ipod" rel="tag"></a>
>      * <a href="http://en.wikipedia.org/wiki/Gravity" rel="tag"></a>
>      * <a href="http://flickr.com/photos/tags/chihuahua" rel="tag"></a>
>
> If rel="tag" is specified, tools like technorati will use the last
> word of the URL as being the tag (see http://www.technorati.com/help/
> tags.html).  The tags would be respectively:
>
>      * ipod
>      * gravity
>      * chihuahua
>
> Drupal, however, generates:
>
>      * <a href="/taxonomy/term/15" rel="tag" title="">
>      * <a href="/taxonomy/term/16" rel="tag" title="">
>
> so microformat aware crawlers pick it up as being:
>
>      * 15
>      * 16
>


More information about the development mailing list