Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By jamespvg on
I'm using Drupal 4.7, trying to figure out how to make my page.tpl.php file display $breadcrumb and $title in different places if the displayed page is either a node (article) or a taxonomy term listing.
$page==0 doesn't seem to help. Any ideas?
Comments
arg(0)=="taxonomy" && arg(1)
-- Example
arg(0)=="taxonomy" && arg(1) == "node"
Here's a page with more variables and examples you can test for
Mike
Thanks for that pointer
Thanks for that pointer TheWhippinpost, that was really helpful.
Following on from that, is there any way for page.tpl.php to ascertain the taxonomy of an individual node?