views:

248

answers:

2

I have installed "Taxonomy Image" module. but i can not find a way to attach multiple images to one taxonomy term

my drupal version is 6

+3  A: 

As far as I can see, the module does not provide the option to attach multiple images to one term. From the features list on the project page:

  • Allows one-to-one term-to-image relationships.
  • Allows many-to-one term-to-image relationships.

So one term can have exactly on image, or multiple terms can have the same image (for 'inheritance' of a parent term image), but no 'multiple images per term' option.

I have not delved into the modules code to look if there is an easy way to change this, though. So far, there seems to be no request for this feature either.

Henrik Opel
+4  A: 

As a side note to what Henrik answered, an alternate way to implement what you want without having to code a single line could be:

  1. Create "image nodes" for each term of your taxonomy.
  2. Associate each image node to the right term of the taxonomy (here's where it get interesting: you can create more than one image node per term and can also use the same image node for different terms).
  3. Create a wiew that takes as arguments the taxonomy term/terms and show all the image nodes tagged with that term.

If you already know the views module you probably realise how easy it is. If you are new to Drupal and do not know it yet, then I recommend you take a close look at it together with the CCK one: they are big and require some time to be "grokked" (neither so much, though!) but every second you spend studying them is worth it!

Using views also gives you a lot of flexibility as you can theme easily theme your output in tables, lists, grids, add or remove associated fields, and even put extra filters or expose them to the user in separate blocks...

HTH!

mac

related questions