How to add data fields to term in taxonomy

palmstrom - October 29, 2008 - 13:39

Hello,

I want to add some editable data fields to taxonomy terms. I want to use special field in term to enter color code for each term in vocabulary. Similar problem is discussed in "Replacing certain taxonomy terms with icons" (http://drupal.org/node/149738), but there are data associated with terms stored in templates and therefore not editable.

Two contributed modules that can be relevant are http://drupal.org/project/issues/taxonomy_fields and http://drupal.org/project/taxonomy_enhancer. But both have no version for Drupal 6. Also I did not test them, so I'm not sure if one of them would solve my problem.

Why not use CCK to make a

nevets - October 29, 2008 - 13:50

Why not use CCK to make a content type and tag it with the appropriate term?

I want to tag some standard

palmstrom - October 29, 2008 - 14:07

I want to tag some standard content type (story, forum post) with my terms and use associated property of term (example: color) to alter rendering of content (example: forum post with *red* background).

Creating new content type would not help, because the color information will not be accessible from tagged content. It's possible to use node reference and link my content to newly created content type. But I think that taxonomy is here for tagging and only part that's missing for me is additional property of taxonomy term.

You could use the tags to

nevets - October 29, 2008 - 14:48

You could use the tags to add css classes to the node and then use those classes to add ccs rules that allow you alter how the content looks. Seems easier and more standard to me.

That seems for me the same

palmstrom - October 29, 2008 - 15:05

That seems for me the same solution as in "Replacing certain taxonomy terms with icons". You will encode color information in css (or template) and style content depending on used term.

But I want to edit the color information along with the term. Modifying css or template after adding new term or when I want to change color of the posts is not convenient.

In general it will be nice to have a possibility to add more properties to the taxonomy term.

did you find solution for

mike-l - April 9, 2009 - 01:49

did you find solution for this problem ?

Check this module

NimrodYonatanBenNes - June 21, 2009 - 12:32

My friends worth gold to me, so I prefer to sell them and get rich!

 
 

Drupal is a registered trademark of Dries Buytaert.