Drupal- What is the difference between Page.tpl.php and Node.tpl.php in drupal?

There is a very basic question which everyone asks that what is the basic differences between node.tpl.php and page.tpl.php?

Page.tpl.php

This template holds the wireframe of the webpage/website like- blocks, regions, header, footer, css, js files and most importantly “main content” etc..

Node.tpl.php

This is a template through which you can customize your “main content”. By main content I mean id the body of the page like about us content, displaying press releases, title of the content etc..

Through node template files you can customize the look and feel of node types like story, page or any custom node type that you have created.

You can create a customize node template as node.tpl.php (applies to all the content types), node-story.tpl.php, node-custom_node_type_name.tpl.php

Bookmark and Share
Both comments and pings are currently closed.

One Response to “Drupal- What is the difference between Page.tpl.php and Node.tpl.php in drupal?”

  1. Reading this post UncleCode.Com – Technology Blog | Drupal- What is the difference between Page.tpl.php and Node.tpl.php in drupal? How to create custom node templates reminds me of my old roommate! He always kept speaking about this. I will forward this article to him. Fairly positive he will have a superb read. Thanks for the information you publish.

n