On Drupal 7, I am trying to create a different version of the default taxonomy template file for a theme. When a user clicks on a taxonomy term, the new template file is used instead of the default one.
So far all I have managed to do is finding the correct template file name (page--taxonomy.tpl.php). The problem that I have is that the variables copied from the template file the Taxonomy module uses simply don't work, as they are obviously not being populated.
<?php if ($content = render($page['content'])): ?> <div id="taxonomy-term-<?php print $term->tid; ?>" class="<?php print $classes.' channels-'.strtolower(str_replace(' ','',$term_name)); ?>"> <?php if (!$page): ?> <h2><a href="<?php print $term_url; ?>"><?php print $term_name; ?></a></h2> <?php endif; ?> <div class="content"> <?php print render($content); ?> </div> </div> <?php endif; ?>
So any variable beginning with $term is NULL. What/where do I call to populate these?