beginning theming question

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

Hello,

I am new to the group, or new to speaking up anyway... I hope that this is the right place to ask...

I am working on my drupal skills and have set out to build a "simple" shopping site for my sisters' jewelry business... I am just getting started with building my own theme and have run into something that I cannot seem to work around:

Using devel module I found a candidate to override with a template file. So in my custom theme directory (/sites/all/themes/latrunk) I placed the file node-products.tpl.php with the code that I wanted it to override with... I cleared the cache, and refreshed the page, and I have the same output with no changes... I have been reading through the theming guide on drupal.org. and as far as I can see, I am doing everything right...

Any suggestions as to what it might be would be greatly appreciated...

http://latrunk.de516n.com/node

Thanks,
Andy

Comments

Check template name

wonder95's picture

Check the name of your content type - is it "product" or "products"? The name in the template name has to exactly match the name of the content type. If you are using Ubercart, the default content type is Product, so your template would need to be node-product.tpl.php.

node.tpl.php

duellj's picture

Also, make sure that you have a node.tpl.php template in your theme as well. If you don't have a default node.tpl.php template, then the content type node templates won't load.

Thank you both for the

aprice42's picture

Thank you both for the help... I didn't have the node.tpl.php file in my theme yet... I added it and my override is now recognized... thank you!

Andy )

fwiw

wolv3rin3's picture

drupal theming is its own beast and loves to abuse you. for a more 'gentle' process the first time around, use the zen starter theme.

http://drupal.org/project/zen