Create Node Template

drupal_branding_2012By default, all Drupal themes have a default node template. But you can create individual custom node templates based on the content type. Creating one is quite easy. Just duplicate the node.tpl.php file and rename it by adding the machine name of the content type i.e.

node–machinename.tpl.php

For example if your content type is Resources then the machine name will be resources:

node–resources.tpl.php

Please note the two hyphens that precede the machine name.

For further reading:

https://drupal.org/node/17565

https://drupal.org/node/1089656

April 28, 2014

Posted In: Information Technology

Tags: ,

Leave a Comment