Library Templates
Component ID
1976492
Component name
Library Templates
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Normally, if you want to write a custom template for a node type, you put a file named node--foo.tpl.php in the theme you wish to use.
Sometimes, you want to write a template for a node type that is independent of the theme chosen. This would be the case, for example, if there are multiple custom fields that need carefully themed output.
In this case, it is a bad idea to put the same node-foo.tpl.php file into the folder of each theme you might use. Doing so is (a) too much work, (b) hard to maintain if you change the template, and (c) creates code duplication where the same code occurs in multiple files on the same site.
This very simple module lets you put all of these templates into /sites/all/libraries/templates instead.
