By theanil on
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
Two hyphens
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.
LM — Drupal development
I have changed the name
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
You can do two things firs
You can do two things firs empty your cache,
If it still don't work than add below code in your template.php file
Sorry make node instead of
Sorry make node instead of page here
It started working after
It started working after clearing the cache