Warning: INSERT command denied to user 'dbo248886814'@'212.227.119.181' for table 'drupalguides_watchdog' query: INSERT INTO drupalguides_watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:7:\"warning\";s:8:\"%message\";s:97:\"array_map() [<a href=\'function.array-map\'>function.array-map</a>]: Argument #2 should be an array\";s:5:\"%file\";s:67:\"/homepages/23/d181601631/htdocs/Drupal/modules/system/system.module\";s:5:\"%line\";i:1015;}', 3, '', 'http://www.drupalguides.net/Guides/5/Theming', '', '54.167.44.32', 1513615100) in /homepages/23/d181601631/htdocs/Drupal/includes/database.mysqli.inc on line 128

Warning: INSERT command denied to user 'dbo248886814'@'212.227.119.181' for table 'drupalguides_watchdog' query: INSERT INTO drupalguides_watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:7:\"warning\";s:8:\"%message\";s:107:\"array_keys() [<a href=\'function.array-keys\'>function.array-keys</a>]: The first argument should be an array\";s:5:\"%file\";s:57:\"/homepages/23/d181601631/htdocs/Drupal/includes/theme.inc\";s:5:\"%line\";i:1771;}', 3, '', 'http://www.drupalguides.net/Guides/5/Theming', '', '54.167.44.32', 1513615100) in /homepages/23/d181601631/htdocs/Drupal/includes/database.mysqli.inc on line 128

Warning: INSERT command denied to user 'dbo248886814'@'212.227.119.181' for table 'drupalguides_watchdog' query: INSERT INTO drupalguides_watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:7:\"warning\";s:8:\"%message\";s:39:\"Invalid argument supplied for foreach()\";s:5:\"%file\";s:57:\"/homepages/23/d181601631/htdocs/Drupal/includes/theme.inc\";s:5:\"%line\";i:1771;}', 3, '', 'http://www.drupalguides.net/Guides/5/Theming', '', '54.167.44.32', 1513615100) in /homepages/23/d181601631/htdocs/Drupal/includes/database.mysqli.inc on line 128
DrupalGuides.net - Guides and tutorials for Drupal
  • warning: array_map() [function.array-map]: Argument #2 should be an array in /homepages/23/d181601631/htdocs/Drupal/modules/system/system.module on line 1015.
  • warning: array_keys() [function.array-keys]: The first argument should be an array in /homepages/23/d181601631/htdocs/Drupal/includes/theme.inc on line 1771.
  • warning: Invalid argument supplied for foreach() in /homepages/23/d181601631/htdocs/Drupal/includes/theme.inc on line 1771.
Title Nid
Naming template (.tpl.php) files 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. 16
Customising Drupal's primary and secondary links This concise guide will show you how to customise the display of your primary and secondary links by using a theme override. 26
Inserting blocks into content i.e. pages, blogs, entries etc... This guide describes how to display content in a block using PHP. This may be useful if you want to stack snippets of content each contained in their own block. This tutorial does require some familiarity with SQL and PHP. 27
How to make a fully customised Drupal theme This guide describes the process of creating a theme for Drupal 6.x. It describes the purpose of each file in the theme and the PHP variable which can be called to create various page elements. 70
Theming a CCK node in Drupal 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. 52