2

With Drupal 6 there was Taxonomy Image to do this, but with the field goodness of Drupal 7 we can just add an imagefield to a certain vocabulary. This works quite well to output stuff with views, but I can't seem to find a way to show up the additional field on the node display.

In my case I simply have a vocabulary called countries that has an additional imagefield to hold the country's flag. When viewing a node that has assigned a country term I need the flag of the country to show up instead of its name.

Regards, Daniel

3
  • How are you structuring your output? Are you using any modified templates? or just the node's view as configured through the Drupal UI?
    – Merrick
    May 9, 2012 at 8:52
  • Lately I'm trying to avoid specific node templates as far as possible and use Semantic Fields instead. May 10, 2012 at 14:35
  • I have no idea about Semantic Fields but this is generally very possible using stock display settings of the node. You should make use of a Entity Refence field while attaching the taxonomy to your content type. You should then choose 'Rendered entity' for that taxonomy field and go with it. You can create as many view modes as you want with Entity View modes. And you can manage display of the vocabulary for that view mode as you desire.
    – duru
    Apr 19, 2015 at 23:11

1 Answer 1

-1

I've not played with semantic fields before, but I can tell you that configuring a term's display is the same as configuring a nodes display. The administration for a vocabularies display can be found at Structure --> Taxonomy --> VOCAB_NAME --> Manage Display or the path

admin/structure/taxonomy/VOCAB_NAME/display

Again, same as nodes you can configure the labeling & formatting options from this area. However, the location to configure a node's display is Structure --> Content Types --> YOUR_TYPE --> Manage Display

These settings are used for Drupal's native output. Using views can bypass these settings depending on the view (fields) or can work together (full, default, teaser).

4
  • Thanks, but configuring a vocab's display is only relevant for showing term overviews, such as countries/austria and on the node display settings the only options for displaying a term refernce field are "Link", "Plain text" and "RSS Category", none of them outputs a term's additional field. May 11, 2012 at 12:15
  • So your goal is to display, a term's image field when viewing a node that term is attached to? I may have misunderstood what you were after.
    – Merrick
    May 11, 2012 at 19:02
  • Yes, exactly. Sorry if that wasn't clear. May 11, 2012 at 19:49
  • Well, now I got it, I was probably reading too fast. I'll update my answer
    – Merrick
    May 12, 2012 at 2:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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