0

I have created a content type called 'Home' and I also create a new file called, node-home.tpl.php.

What I understood from the drupal documentation, that when a Node has the content type it should use node-contenttypename.tpl.php as the node template file, if it exists.

But mine isen't working and its defaulting back to node.tp.php.

Any idea what I'm doing wrong?

2

The file has to be called node--home.tpl.php. There always has to be 2 '-' between type and name.

  • Great thanks! I read it here: drupal.org/node/17565, which I can only assume is for an older version. – CharliePrynn Jul 3 '13 at 16:09
  • Yes this one is for d6 and lower ;) – MrPinkey Jul 3 '13 at 16:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.