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 …

19 comments June 15th, 2007

How to make a list of the taxonomy terms with Drupal

Here is a very common question I encountered while setting up websites with Drupal: How do I make a list of the taxonomy terms that will display like a menu. That is, each taxonomy term should display as a link and when you click you go to the page that displays the nodes associated with that taxonomy term.

This feature is straight forward in WordPress. And this is one I was missing in Drupal. Of course with Drupal when something is not readily available out of the box, it doesn’t mean that it’s not available at all. Actually the more I get to know Drupal the less limitations I see (quite the opposite from WordPress). But we can not say that it is really intuitive.

There is probably several ways to achieve this but the one I have chosen so far involves the Taxonomy Menu module.

Read more …

4 comments June 14th, 2007

Click2bookmark (Drupal module)

Click2bookmark adds a nice feature to Drupal sites: now authenticated users can bookmark some pages (or views) within your website.

I posted a picture to show the result of adding bookmarks:
Screenshot of the Drupal module Click2bookmark

You can choose to display or not the block ‘My bookmarks’.

I originally wrote that module for Eric Elegado’s real estage agency. You can see it in action at this address: http://ee-real-estate.com.

You can download Click2bookmark from the Drupal site: http://drupal.org/project/click2bookmark. Please post your questions directly on that page.

Add comment April 5th, 2007

Next Posts Previous Posts