[support] Making drupal use custom template for cck node

Matt Friedman matt.friedman at gmail.com
Thu Feb 18 17:11:03 UTC 2010


I'm sure there's a simple answer for this but it just isn't working
for me. I've seen lots of posts that say you can just create your own
node-[typename].tpl.php file alongside node.tpl.php and the system
should pick up your custom node theme instead of the default one. I've
done this, and it just won't pick up the custom one for me.

I have Themer info display module installed. I'm using the garland
theme. In the garland theme directory I have copied node.tpl.php to
node.podcast.tpl.php. When I view the page the Themer display tells me
that it finds node.podcast.tpl.php as a 'candidate' file, but it
continues to use node.tpl.php as the template.

I've tried rebuilding the template registry and devel/rebuild cache.
Doesn't seem to help.

How do I get drupal to use my custom template? The podcast type is a cck type.

Thanks,
Matt


More information about the support mailing list