is it possible to display both the direct image of the term and also the parent image

Comments

chasz’s picture

hello can someone give me a hand with this??

I would like to grab the image of the taxo term and also the parent term/recursive vocab

i used contemp and it failed miserably

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry, I don't see how to do this in the module without a lot of hokey coding.

You might be able to do something in Contemplate or a theme template using taxonomy_get_parents_all and iteratively calling taxonomy_image_display for each of them.

nancydru’s picture

See the "A module usage matrix" section of the documentation for a possible starting point for such code. You might also want to look at the theme template in #301175: Calling the images?

chasz’s picture

i made a slight mistake on this request; i assume a node only has one taxonomy term, which is incorrect.

But i would still like to grab the highest order image, which most likely would be the Vocab?

nancydru’s picture

The vocabulary does not have an image associated with it - only terms have images.

nancydru’s picture

I think I can sort of do this - but only because of the caching I added some time ago, otherwise it would be far too expensive.

nancydru’s picture

Status: Postponed (maintainer needs more info) » Postponed