1

Can I associate an image field to a taxonomy term? I need to do this in my panel that lists the children terms (with images to make it look nice) of a parent term page. I have already added image field in vocabulary thus images for each terms.

I'm on D7.

enter image description here

  • Are you asking how to display the image then? If so you need to provide more info about how you currently render your page/node/whatever. – Letharion May 24 '12 at 9:41
  • 1
    Ok. I've edited the "Taxonomy Term Template" in pages/panels. The taxonomy terms showed above are the child terms which I selected from the panel settings. I do see the option of selecting the term image field in the settings but that field shows the current parent term's image not of the children. – CobaltBabyBear May 24 '12 at 10:10
  • I see. Since having Page manager/Panels pull out related data is wildly different from attaching images to the terms in the first place, which I have already answered, could we open a new question for this? – Letharion May 24 '12 at 10:18
  • 1
    Ok I'm posting a new question. – CobaltBabyBear May 24 '12 at 10:20
  • Care to link to the new question? – User Sep 13 '13 at 17:41
7

In D7 Terms are "entities", which means you can set an image field right on them, just like you could have with CCK in Drupal 6.

Just go to manage fields on whatever vocabulary you want, and you can add the image field.

3

In D7 taxonomy is an Entity so you can add fields to it and make more usable. Yes you can add an image field and you can use display formatters to display the image. You can use Display Suite module or Entity View Mode module to create new view mode and display it on entity view.

If you want to add term to content, just use Entity reference module not the term reference.

2

To display the images you assigned to your terms you need to follow the instructions here: https://drupal.org/node/1224916

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.