Archive for June 15th, 2007

Another taxonomy term list for Drupal

In my previous post I exposed one method how to make a list of the taxonomy terms with Drupal. This method was using the Taxonomy Menu module. However this method has some limitations.

One is that it creates specific URL for the menu item link. It doesn’t use the existing URL for the taxonomy term: /taxonomy/term/[term-ID]

It links to a page with a URL that looks like this: /taxonomy_menu/[vocabulary-ID]/[term-ID]

This can be a problem for example when you want to use a module like Pathauto to automatically generate URL aliases. The pages created by the Taxonomy Menu module are not managed by the Pathauto module. So it you want to keep a coherent naming system for your URLs you will need to change manually the URL aliases for these pages.

There is another limitation regarding its “SEO friendliness”. I think it’s always a good thing to use the title attribute in the <a> tag. This feature doesn’t come standard with Taxonomy Menu module. So if you want it, you need to manually edit each menu item to add a description.

Considering these limitations, and a process that is somehow quite complex, I have found another method which involves the use of a php block snippet. Read more …

22 comments June 15th, 2007