November 5, 2011
by Peter
0 comments

Drupal 6 page.tpl.php template based on path

Use custom page.tpl.php files based on the URL path alias of your pages to create custom template files. Add the following code to your theme’s template.php file. function phptemplate_engine_preprocess_page(&$variables) { $alias = drupal_get_path_alias($_GET['q']); if ($alias != $_GET['q']) { $template_filename = … Continue reading