[TYPO3-english] Again: Cooluri, multidomain, multilanguage, single tree setup

Jan Bednarik info at bednarik.org
Thu Mar 19 19:03:04 CET 2009


Hi,

I thought about it and I belive there is a solution. I just haven't test 
it yet.

I'll just go from a scratch:

You need to create a function and make sure it will be included (perhaps 
add it to ext_tables.php or localconf.php)

the function would look like this:

function myGetPageTitle($conf,$value) {
   $L = 0;
   if ($_SERVER['HTTP_HOST']=='www.example.com') {
     $L = 1;
   }
   // etc.
   $value['L'] = $L;
   return tx_cooluri::getPageTitle($conf,$value);
}

and in your CoolUriConf.xml set:

pagepath >>
     <userfunc>myGetPageTitle</userfunc>

This would make pagepath to be translated. But there is still a problem 
with extension like tt_news.

Let me know if it works

Regards

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


More information about the TYPO3-english mailing list