[TYPO3] translation problems with cooluri

Jan Bednarik info at bednarik.org
Wed Jul 30 21:46:44 CEST 2008


Hi,

> For me this works very well. Is there a way to define this  in the 
> CoolUriConf.xml?

no

1) It would be really hard to define
2) I'm still trying to keep CoolUri core independent on Typo3


Correct way would be to change userFunc in the pagepath. This new func 
would change L parameter and then call original CoolUri func. It may 
look like:

function myGetPageTitle($conf,$value) {

$langId = empty($value['L'])?false:$value['L'];
$langId = (int)$langId;

if ($langId==2) $value['L'] = 0;

return tx_cooluri::getPageTitle($conf,$value);


}

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


More information about the TYPO3-english mailing list