$node->type == 'product'?

Events happening in the community are now at Drupal community events on www.drupal.org.
Sc0tt's picture

Thanks in advance for any help on this. Does anybody know how if its possible to use $node->type == 'product' in node.tpl to customize the look of the product' page? If not, does anyone have a solution for hiding a product's tile?
Thanks again,
Sc0tt

Comments

Same thing, different way...

niklp's picture

In theming, to discriminate between node types and their displays, you should use separate themeing files. In this case, if you have a content type named "product", you can safely make a copy of your node.tpl.php and name it node-product.tpl.php and use that to determine the display of your product nodes.

You can find out more about themeing in the handbook, or on the apress.com website there is a free chapter from the new Pro Drupal Dev book on themeing.

Hope this helps.

Got it! Thanks!

Sc0tt's picture

Thanks NikLP for your help. I managed to get the product's title removed. Thanks also for the links. Very usefull info.
Sc0tt

e-Commerce Module

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: