I am overriding node.tpl.php
for a specific node (node--news.tpl.php
) to display it differently in the front page. Instead of copying node.tpl.php
code into node-news.tpl.php
to display the node with the default rendering when we are not on the front page, I would rather prefer calling the base template implementation (node.tpl.php).
if ($is_front)
// ...
else
base_template(/* ... */);
Is that possible ?
Thanks,
Solution :
function template_preprocess_node(&$variables)
{
if (drupal_is_front_page() && $variables['node']->type == 'news')
$variables['theme_hook_suggestions'][] = 'node__news__front';
}
Then, simply edit the template file node--news--front.tpl.php