[TYPO3] Website title in different languages

Jan Bednarik info at bednarik.org
Mon Jul 9 19:28:18 CEST 2007


Hi,

> How to change website title (one taken from website template) for 
> different language versions?

I saw an extension for this once, but cannot remember its name.

Anyway, it's not that hard.

Create a file called title.php and place it into fileadmin:

<?php
function user_title($t) {
          $t = explode(":",$t);
          $l = $GLOBALS['TSFE']->config['config']['language'];
          if ($l=='uk') $t[0] = 'English title';
          else if ($l=='de') $t[0] = 'German title';
          return implode(':',$t);
}
?>

and then add to your TS:

page.includeLibs.something = fileadmin/title.php
config.titleTagFunction = user_title

Regards

-- 
Jan Bednarik
www.bednarik.org - web about Typo3 in czech


More information about the TYPO3-english mailing list