By AdamGrimes on
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
i'm still stuck on this
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?
What about
What about template_preprocess_taxonomy_term() ?
http://api.drupal.org/api/drupal/modules--taxonomy--taxonomy.module/func...
i just thought that this may
i just thought that this may help...
http://drupal.org/node/53464
http://mustardseedmedia.com/podcast/episode31
i just thought that this may
i just thought that this may help...
http://drupal.org/node/53464
http://mustardseedmedia.com/podcast/episode31