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

Please follow and like us:
0

Leave a Reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

April 28, 2014

Posted In: Information Technology

Tags: ,

Leave a Comment