.tpl.php

Theming a CCK node in Drupal

  Overview:

No votes yet
This guide explains how to theme a CCK node using the node.tpl.php template rather than the Contemplate module. This involves accessing the node variables directly through PHP. The same principle can be used to theme any node type and this is especially useful for customising a Views or Views2 display.

tags: .tpl.php,node,node.tpl.php,theming
Drupal Version5.x
CategoryTheming
ModuleCCK
DifficultyAdvanced
MediumText

Naming template (.tpl.php) files

  Overview:

Average: 5 (2 votes)
This guide describes how to name template (.tpl.php) files in order to override the Drupal default. For example how to create a custom template for a specific block, user or module.

tags: .tpl.php,naming suggestions,template files,templates,theming
Drupal Version6.x
CategoryTheming
DifficultyAdvanced
MediumText
Syndicate content