This is probably a newbie issue, but it has me stumped. I am still fairly new with Drupal, been hammering away for a few months to try and learn it to develop a custom theme for a church website.
Right now I have a custom content type with the machine-readable name church_info. I'm wanting to develop a custom node template so I create the file node-church_info.tpl.php and put basic layout info in the file. Nothing fancy, just getting started with it. I have other custom files in the directory (page-front.tpl.php) which load fine. But I cannot get the custom node template to display. I've made sure to reset my cache various times and I've checked and rechecked the content type and node file. Using the devel-themer module I can confirm it lists node-church_info.tpl.php as a candidate file, but for some reason it will not see it/recognize it in the folder.
What could I be overlooking?
Comments
You have to have a
You have to have a node.tpl.php in your theme as well, or the node-TYPE.tpl.php files won't get picked up. If you don't need to change anything about standard nodes, just copy the node.tpl.php from your base theme, or /modules/node if you don't have a base theme and use that. :)
And there it is. Thanks for
And there it is. Thanks for the tip! That did it.
I am having this problem
I am having this problem also, but I do have node.tpl.php in the theme I am using.
What is the name of your
What is the name of your content type and what is the name of your new tpl file? Also, make sure to clear your cache.
Amanda