Posted by Sc0tt on July 21, 2007 at 7:27am
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...
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.
Web Development in Nottingham, UK by Kineta Systems / Follow me on Twitter! @NikLP
Got it! Thanks!
Thanks NikLP for your help. I managed to get the product's title removed. Thanks also for the links. Very usefull info.
Sc0tt