I'm using page--taxonomy--term.tpl.php to theme a list of node teasers. In the vocabulary, I created a new field 'field_banner', but I can't seem to access it at the theme level for the life of me. Where are taxonomy level fields exposed? For instance, it's not in the $page variable, so a render($page['field_banner']) doesn't work. It's also not visible at the node level for nodes in that vocabulary.

Also, what preprocess hook can I use in template.php to get variables into page--taxonomy--term.tpl.php? Google is failing me and so is trial and error.

Any help is appreciated.

Comments

AdamGrimes’s picture

i'm still stuck on this one.

The best solution I can come up with is to forget the field in the taxonomy page since they don't work and just add logic in the template file to add an image based on the term id.

Just to ask again: Does anyone know where taxonomy level fields are exposed or what hook I can use in template.php for a page--taxonomy--term.tpl.php page?

visualfox’s picture

vrsotto’s picture

vrsotto’s picture