Sunday, 23 October 2011

Create node theme for content type in drupal

The node.tpl.php is a default theme for all nodes.
If need to change node theme for specific content type follow following steps

1. If u create node theme for page content type, create node-page.tpl.php in your template folder.
2. Copy node.tpl.php to node-page.tpl.php , Importent do not delete default node.tpl.php file
3. Change the theme display for your needs
4. Use variables node.tpl.php
5. If u create node theme for movie page content type, create node-movie_page.tpl.php file.

For more: Theming node by content type

0 comments:

Post a Comment