Created
June 14, 2011 19:33
-
-
Save gavinblair/1025666 to your computer and use it in GitHub Desktop.
Drupal - Get access to the $node variable in page.tpl.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//we want the node, outside of node.tpl.php! | |
$node = $variables['node']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More maintainable maybe? Templates are meant to be changed... template.php is more constant?
You should probably also do this:
so that changes to the node are actual changes to the node.