I have made a subtheme and now want to customize the content types. I tried placing a node-contenttype.tpl.php in subtheme folder, but its not responding. I did a search on drupal.org but could't find anything.

I wanna know where should i place the template files to override the sky theme?

Comments

jacine’s picture

Do you have a node.tpl.php in the subtheme? You need one:

http://drupal.org/node/190815#node-suggestion

Node content type, e.g., "node-story.tpl.php", "node-blog.tpl.php", etc. Note that in order to override the template for a specific node type, the theme must also implement the base node.tpl.php file. If this file is omitted, the theme will not even bother looking for node-[type].tpl.php files.

jacine’s picture

It doesn't matter where you put the tpls in the subtheme. You can put them in the root of the theme or in a subfolder like templates/ or whatever. Your issue is likely that you don't have a node.tpl.php in the subtheme. It's a Drupal 6 annoyance/bug.

jacine’s picture

Also, you need to clear the cache in order for Drupal to pick up your new template files every time you add a new one.

khanz’s picture

thnx Jacine placing node.tpl.php did the trick.. :)

jacine’s picture

Status: Active » Closed (fixed)

you're welcome.