Hi All,
I have create node-webform.tpl.php with the help of node.tpl.php and i am using danland theme,

but webform is still using node.tpl.php
and not my node-webform.tpl.php

I want to remove published by Anonymous (not verified) on Mon, 02/06/2012 - 19:03 in Webform

Please suggest the solutions.

Regards
Anil

Comments

laurencemercer’s picture

Hi Anil,
for Drupal 7 you need two hyphens, so the tpl name should be 'node--webform.tpl.php'.

Check out http://drupal.org/node/1089656 for reference.

theanil’s picture

Hi,
I have changed the name of template from node-webform.tpl.php
to node--webform.tpl.php
but it is still not working.

Regards
Anil

Rajatarora’s picture

You can do two things firs empty your cache,
If it still don't work than add below code in your template.php file

<?php
function themeName_preprocess_page(&$vars, $hook) {
  if (isset($vars['node'])) {
    $vars['theme_hook_suggestions'][] = 'page__'. $vars['node']->type;
  }
}
?>
Rajatarora’s picture

Sorry make node instead of page here

theanil’s picture

It started working after clearing the cache