Installing Smarty theme engine

Last modified: August 26, 2009 - 23:53

To enable use of Smarty-based Drupal themes such as (Box_grey_smarty, Bluemarine_smarty, Leaf_smarty, etc.) you must have the Smarty theme engine installed.

  1. Go to the Smarty project page and look for the the preferred links, halfway down the page. These are complete packages, but they're not hosted on the Drupal.org site. (If you prefer to download only from Drupal.org, you'll have to get and install the underlying Smarty engine separately.)
  2. Download the package appropriate to your version of Drupal to a temporary location.
  3. Extract the package into the themes/engines directory, so the full path looks like /path/to/drupal/themes/engines/smarty/...
  4. Check, and if necessary change the permissions on the templates_c directory, as documented at the 'templates_c' Directory Permissions page.
  5. Go to http://smarty.net/download.php and download a copy of smarty.
  6. Extract the second copy in another temporary location, and copy all of the files in /libs to /path/to/drupal/themes/engine/smarty/libs
  7. Download a Smarty-based theme from the Themes page. The Smarty engine package that you've just installed doesn't contain a sample theme, so you can't test it without first downloading or creating a theme.

You should now be ready to enable, configure, and use Smarty-based themes.

 
 

Drupal is a registered trademark of Dries Buytaert.