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 leoman730 on
Hi all,
I have a question about drupal. I am kinda new to drupal. So please help me with this:
What is the different between page and node?? In the function __phptemplate_variables(), i see
switch ($hook) {
case 'page': break;
case 'node': break;
}
I am wondering what is the diff between this 2. Thanks.
Comments
=-=
These handbook documents may help:
node = http://drupal.org/handbook/modules/node
page = http://drupal.org/handbook/modules/page
They allow you to define
They allow you to define different variables for the different template files, page.tpl.php and node.tpl.php respectively. You can also define variables for the other template files in the same way. (page.tpl.php applies to the whole page, node.tpl.php only applies to the node part - not the blocks, header/footer etc.)