[TYPO3-ttnews] tt_news and realurl - only standard language title in single view url
Basti Baumann
donillo at gmail.com
Fri Apr 25 12:34:12 CEST 2008
Francois Suter schrieb:
> Hi,
>
>> Hello Frederic,
>
> Francois, not Frederic :-)
>
>> now it works with my standard website url (and three languages).
>> But now I have a problem with a second domain.
>> Our spanish website is reachable via an extra domain (domain.es).
>> On this site all the news urls are in english and not in spanish:
>> http://www.domain.es/news/news-details/article/84/changing-gears-quickly-high-performance-transmission-production/
>>
>>
>> If I use my standard domain it works:
>> http://www.domain.de/es/novedades/novedades-detalles/article/84/cambio-de-marchas-mas-rapidamente-produccion-de-la-transmision-de-alto-rendimiento/
>
>
> A stupid question, but are the configurations identical for both
> domains? Have you copied the _DEFAULT configuration to www.domain.es?
>
> Cheers
>
Sorry Francois ;)
It´s nearly the same configuration. But I found out that all of my
spanish sites have english urls.
I think this is a real_url problem, not a tt_news problem.
This is my configuration:
# rootpage_ids angeben
$rootpage_id = array(
'domain.de' => '2',
'domain.es' => '2'
);
$http_host_realurl = $rootpage_id[preg_replace('!^(www\.)!', '',
$_SERVER['HTTP_HOST'])];
# vipa.de
$TYPO3_CONF_VARS['EXTCONF'] ['realurl'] ['_DEFAULT'] = array(
'init' => array(
'enableCHashCache' => 1,
'enableUrlDecodeCache' => 1,
'enableUrlEncodeHash' => 1,
'postVarSet_failureMode' => 'redirect_goodUpperDir',
),
'rewrite' => array(
),
'preVars' => array(
array(
'GETvar' => 'L',
'valueMap' => array(
'en' => '0',
'de' => '1',
'nl' => '2',
'fr' => '3',
'uk' => '4',
'us' => '5',
'es' => '6',
),
'valueDefault' => 'de',
'noMatch' => 'bypass',
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 3,
'rootpage_id' => $http_host_realurl,
#'rootpage_id' => '2',
'firstHitPathCache' => '1'
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 0,
'index' => array(
'page.html' => array(
'keyValues' => array (
'type' => 1,
),
),
),
),
'fixedPostVarSets' => array(
),
'postVarSets' => array(
'_DEFAULT' => array(
//archive
'period' => array (
array (
'condPrevValue' => -1,
'GETvar' => 'tx_ttnews[pS]',
//'valueMap => array()
),
array (
'GETvar' => 'tx_ttnews[pL]',
//'valueMap => array()
),
array (
'GETvar' => 'tx_ttnews[arc]',
'valueMap' => array(
'non-archived' => -1,
),
),
),
'browse' => array (
array (
'GETvar' => 'tx_ttnews[pointer]',
),
),
'select' => array (
array (
'GETvar' => 'tx_ttnews[cat]',
'lookUpTable' => array (
'table' => 'tt_news_cat',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause'=> 'AND NOT deleted',
'useUniqueCache'=> 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
'category' => array (
array (
'GETvar' => 'tx_abafaq_pi1[cat]',
'lookUpTable' => array (
'table' => 'tx_abafaq_category',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => '1',
'useUniqueCache_conf' => array (
'strtolower' => '1',
'spaceCharacter' => '-',
),
),
),
),
'back' => array(
array(
'GETvar' => 'tx_abafaq_pi1[backPid]',
),
),
'article' => array(
array (
'GETvar' => 'tx_ttnews[backPid]',
// 'valueMap => array(
// ),
),
/*array (
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array (
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'maxLength' => 60,
'addWhereClause'=> 'AND NOT deleted',
'useUniqueCache'=> 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
*/
array(
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array(
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'languageGetVar' => 'L',
'languageExceptionUids' => '',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
'jobs' => array(
array(
'GETvar' => 'tx_abminijoboffers_pi1[showUid]',
'lookUpTable' => array(
'table' => 'tx_abminijoboffers_jobs',
'id_field' => 'uid',
'alias_field' => 'bezeichner',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '_',
),
),
),
),
'partner' => array(
array(
'GETvar' => 'tx_sbpartner_pi1[uid]',
'lookUpTable' => array(
'table' => 'tx_sbpartner_partner',
'id_field' => 'uid',
'alias_field' => 'company',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '_',
),
),
),
),
),
),
),
);
# weitere Sprachversionen
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain.es'] =
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain.es']['preVars'] = '';
More information about the TYPO3-project-tt-news
mailing list