2

How can I add page templates for different Languages in my Drupal 6?

For example, if I want to make different page template for Bulgarian language, page-bg.tpl.php doesn't work.

4

A drupal.org groups comment shows examples how to allow use of multiple tpl.php file versions.

Using

<?php $vars['template_file'] ?>

it is possible to create your own template file suggestions.

Example:

function phptemplate_preprocess_page(&$vars, $hook) {

  if($vars['language']->language == 'bg') {
    $vars['template_file'] = 'page-bg';
  }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.