Home ›
How to override block.tpl.php and node.tpl.php from your moduleHow to override block.tpl.php and node.tpl.php from your module
Submitted by Benjamin Melançon on December 28, 2010 - 7:43pm
Searched words:
drupal 7 template file paths
drupal 7 preprocess suggestions template files
After much thought, and not being sure if it needs a hook_theme and a template_preprocess or what
Decided that it is not something we should be doing anyway. Overriding block.tpl.php or node.tpl.php from a module just messes up themes! We can have our own templates for the content we print if we want.
Please leave a comment if you think this conclusion is incorrect!
More like this
- Serving up a different page.tpl.php for different browser types (i.e., IE6) with your Drupal theme
- Print information associated with a node elsewhere in page.tpl.php, using a separate template file for theming
- Provide a theme function to allow override of your block output
- Exclude the current node from also showing up in a block View
- Stop phpMyAdmin from logging you out in your own local environment (Ubuntu)


Comments
Post new comment