Hallo Johannes,
hier eine realurl_conf zum abgleichen. 3 Sprachig. Default english
gruss
matthias
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
//$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'] =array (
'init' => array(
'enableCHashCache' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
'respectSimulateStaticURLs' => 0,
'postVarSet_failureMode'=>'redirect_goodUpperDir',
),
'redirects_regex' => array (
),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no_cache' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'' => '0',
'de' => '1',
'es' => '2',
//'no' => '3',
'valueDefault' => 'en',
),
'noMatch' => 'bypass',
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 7,
'rootpage_id' => 1,
'firstHitPathCache' => 1,
'dontResolveShortcuts' => 1,
),
'fixedPostVars' => array(
'newsDetailConfiguration' => array(
array(
'GETvar' => 'tx_news_pi1[news]',
'lookUpTable' => array(
'table' => 'tx_news_domain_model_news',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-'
)
)
)
),
'newsCategoryConfiguration' => array(
array(
'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
'lookUpTable' => array(
'table' => 'tx_news_domain_model_category',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-'
)
)
)
),
'newsTagConfiguration' => array(
array(
'GETvar' => 'tx_news_pi1[overwriteDemand][tags]',
'lookUpTable' => array(
'table' => 'tx_news_domain_model_tag',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-'
)
)
)
),
),
'postVarSets' => array(
'_DEFAULT' => array (
// Begin postVarsSets tx_news Extension
'controller' => array(
array(
'GETvar' => 'tx_news_pi1[action]',
'noMatch' => 'bypass'
),
array(
'GETvar' => 'tx_news_pi1[controller]',
'noMatch' => 'bypass'
)
),
'news' => array(
'year' => array(
'GETvar' => 'tx_news_pi1[year]',
'noMatch'=>'bypass',
),
'month' => array(
'GETvar' => 'tx_news_pi1[month]',
'noMatch'=>'bypass',
),
'day' => array(
'GETvar' => 'tx_news_pi1[day]',
'noMatch'=>'bypass',
),
array(
'GETvar' => 'tx_news_pi1[news]',
'lookUpTable' => array(
'table' => 'tx_news_domain_model_news',
'id_field' => 'uid',
'alias_field' =>
"CONCAT(IF(path_segment!='',path_segment,title))",
// 'alias_field' => "CONCAT(title, '-',
IF(path_segment!='',path_segment,title))",
// /** OR ***************/
// 'alias_field' =>
'IF(path_segment!="",path_segment,title)',
// /** OR ***************/
// 'alias_field' => "CONCAT(uid, '-', title))",
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-'
),
'languageGetVar' => 'L',
'languageExceptionUids' => '',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'autoUpdate' => 1,
'expireDays' => 180,
)
),
),
),
), // end postVarsSets tx_news Extension
// end postVarsSet
);
On 03.04.2013 19:26, JCL - Johannes C. Laxander wrote:
Wer hat denn die ext. news mit realurl und mehreren Sprachen schon eingesetzt
und würde mir seine realurl_conf.php zum Abgleich zur Verfügung stellen?
Irgendwie muss der Fehler ja in der Konfiguration zu finden sein.
Gruß, Johannes.
JCL - Johannes C. Laxander
Gesendet: Dienstag, 2. April 2013 15:45
Hallo,
ich hab' ein Problem mit realurl in Zusammenhang mit der
Extension 'news' und Mehrsprachigkeit.
Meine realurl Konfiguration habe ich auf Basis von
http://docs.typo3.org/typo3cms/extensions/news/latest/Main/Adm
inistration/Realurl/Index.html (advanced Example) erstellt,
siehe auch:
<https://gist.github.com/jochla/a1c0e98abb6cb572130a>
https://gist.github.com/jochla/a1c0e98abb6cb572130a
Für die deutsche Spracheinstellung ist alles OK. Wenn ich
aber auf eine Fremdsprache wechsle, ist der Artikel-Link
(news detail view) falsch, der Titel ist ist immer noch
deutsch, obwohl der Artikel in holländischer Sprache angelegt
ist. Was ist falsch an meiner Konfiguration?
Für die "normalen" Seiten funktioniert die Sprachumstellung.
_______________________________________________
TYPO3-german mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german