Hi! I'm hoping someone with some Drupal and PHP experience might be able to help me figure out the code for this. I'm running Drupal 6.2 with the current Menu module and have created custom header PHP files that I want to include as part of the page.tpl.php file -- but only if the current node ID is one of a specific primary link or any of that link's children in the menu hierarchy. So essentially, I think I'm looking for something like this: <?php if ($node->nid == 2) //Only I want to also include all the links nested under that id in the menu structure include("sites/all/themes/mytheme/header2.php"); else if ($node->nid == 3) //Plus all children include("sites/all/themes/mytheme/header3.php"); else include("sites/all/themes/mytheme/header.php"); ?> Any idea how I'd go about setting this up? Thanks for looking!
Well, it is hard to figure out what you really want to do.. or rather why do you want to do it this way You could create menu entries, and then files like header2.tlp.php for the children?
Will the nodes in the Links or children be changing, or stay static? If they are always going to be the same and if i am understanding you correctly, you should be able to make a custom page.tpl.php file for each of those pages. Just make a copy of your page.tpl.php file, make your desired changes, then name it page-nodexyz.tpl.php (where nodexyz=the actual node) and drop it in your themes directory..