Since I am new to drupal, I am a little confused on some things. I see in the directory that there are files called page.tpl, page-whatever.tpl, node.tpl and node-whatever.tpl

What are the differences between Node and Page and when (or in my case) how do I link to them?

Thanks

Comments

Anonymous’s picture

You don't link to them. They form the basis of theming the content you create.

You create content in the form of nodes these are fomatted using the tpl

nevets’s picture

You might want to read Understanding Drupal and the Drupal 5 theming guide

grobemo’s picture

Though this isn't a substitute for reading the materials that nevets mentioned, the quick and dirty answer to your question is this: Drupal uses page.tpl.php as a template for an entire web page, including logos, headers, menus, sidebars, footers, etc. It (sometimes) uses node.tpl.php as a template for the "main content" of the page, which is typically inserted into page.tpl.php as <?php print $content; ?>. When you have many nodes on a single web page (as on the front page of drupal.org), Drupal uses node.tpl.php as a template for each node, inserting the whole lot of them into page.tpl.php.

gavranha’s picture

thanks, grobemo!