By MitchMiller-1 on
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
=-=
api.drupal.com may help
Core Templates & Suggestions
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.
re: Core Templates & Suggestions
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') )