Node-$type.tpl.php with Module

tonyp001 - May 15, 2008 - 21:08

I created a module with a content type and wanted to apply a custom theme for it. I created a node theme by using the node-$type.tpl.php file and placing in the directory for my chosen theme.
However, I was wondering if there was a way to place the theme file in my module directory instead? I noticed the organic groups module does it, but when I tried it, nothing happened.
Any thoughts?

In drupal 5, tpl files only

Nick Lewis - May 15, 2008 - 21:25

In drupal 5, tpl files only work in themes. The OG template file is a decoy, meant to be copied to the themes folder I think.

Drupal 6 allows you to do this however.

--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
Personal: http://www.nicklewis.org
Work: http://www.onnetworks.com

Thanks for the reply, Nick

tonyp001 - May 16, 2008 - 11:49

That's too bad.
So outside of creating a theme file for my node, is there another good way to customize it?

 
 

Drupal is a registered trademark of Dries Buytaert.