Hi,
I am coming to Drupal from WordPress.
I followed guide and sub-themed zen.

Now I want to change if (!$page) in node.tpl.php
to use $type which says: $type: Node type, i.e. story, page, blog, etc.

For starters, I would like to display title only on blog posts.

Where is this stuff documented?

Thanks,
Mitch

Comments

vm’s picture

api.drupal.com may help

mradcliffe’s picture

Core Templates & Suggestions should help you as well. You can make a template per node type if you want to do wild and crazy things per node type.

MitchMiller-1’s picture

Thanks to both of you for replying.

There were templates for book and forum, but not for blog posts.

I got it to work using: if ( ($node) && ($node->type == 'blog') )