I'm trying to change the logo in my header based on the taxonomy term of a page. I have managed to get it working on the taxonomy landing page itself. However, I have content pages that have term references on them which don't pull through the term title.
This the code that allowing me to display the title on the taxonomy page:
$termid = arg(2); $term = taxonomy_term_load($termid); $title = $term->name; $title = str_replace(' ', '', $title); $field_organisation->field_organisation['und']['tid'];
I am then stripping out the whitespace and printing the value inside an
I've tried doing this with views and creating a list of all nodes and adding a contextual filter. Yet this seems to only work the other way. So it only displays the image on the node page itself and NOT the taxonomy landing page.
Any help would be much appreciated.