Adding 'custom fields' to vocabularies

rob101 - September 17, 2009 - 10:52

I've searched the site but haven't been able to find an answer to this question.

When you create a vocabulary, each term within it has a title.
This title will typically be used in the category page's URL, Title, Heading and the breadcrumbs on relevant pages.

I'd like to be able to specify these things individually.

Is it possible to add custom fields to a vocabulary, such that you could specify for each term:
- a term name (eg: Blue Widgets)
- a title (eg: We sell Blue Widgets)
- a path (eg: cheapest-blue-widgets)
- introductory text for the category page (eg: Look through the links below to find the blue widget that suits your needs)
- etcetera.

These could later be accessed by Tokens, etc.

I can't imagine that no one has looked for this flexibility before, but I can't find a module that would simply let you add your own fields to a vocab.

Thanks, Rob

You've got a couple of

matt_harrold - September 18, 2009 - 07:02

You've got a couple of options ...

http://drupal.org/project/edit_term - this module allows you to create Menu entries and custom paths for taxonomy terms directly from the term edit page.

http://drupal.org/project/taxonomy_intro - this module adds a single textarea field called "Introduction" to each term edit page.

http://drupal.org/project/taxonomy_title - allows you to customize the page title for a term.

http://drupal.org/project/term_fields - allows you to have custom fields for terms. This module is pretty basic and may not suit your needs, but if you don't mind a bit of PHP coding, it can be handy.

Drupal 7 will solve all of these problems, but we'll have to wait a while longer.

Thanks Matt

rob101 - September 18, 2009 - 15:42

Your four suggestions look great, but this line:

Drupal 7 will solve all of these problems, but we'll have to wait a while longer.

makes me happy. I've specifically tried not to play around with D7 yet, but I might have to go and look at that now.

R

 
 

Drupal is a registered trademark of Dries Buytaert.