bofei 的blog

Customising blog layouts

Customising how your blogs are displayed is extremely easy in Drupal using a phptemplate based theme. All you need to do is:

Make a copy of your node.tpl.php file
Rename it to node-blog.tpl.php
in a text editor like notepad.exe or equivalent, edit the layout to suit your needs and upload it to your active theme folder
Drupal will automatically pick up your new node-blog.tpl.php layout file and apply it
Available variables
$title : Title of node.
$node_url : Link to node.
$terms : HTML for taxonomy terms.
$name : Formatted name of author.
$date : Formatted creation date.

同步内容