[TYPO3-german] realURL + tt_products
Björn Hahnefeld
bjoern at hahnefeld.de
Thu Feb 23 22:28:37 CET 2012
Hallo zusammen,
ich möchte gerne in Verbindung mit realURL die Extension tt_products
einsetzen. Aber das bereitet mir Probleme, wenn ich auf die Detailansicht
gehen möchte. Dort wird zwar nun eine sprechende URL angezeigt.
Doch wenn ich die Sprache wechsle (One-Tree, kein TemplaVoila), dann wird in
der jeweils anderen Sprache kein Produkt angezeigt. Offensichtlich geht die
"produkt"-Variable verloren:
http://www.sieck.de/maschinen/oesen/details/spindelpresse/.
Anbei meine realURL-Konfiguration:
--
<?php
/*
RealURL Config mit folgenden Extensionanpassungen:
- indexedsearch
- tt_news
- tx_ablinklist
- ve_guestbook
- RSS Feed
-
*/
if (!eregi('/en/', $_SERVER['REQUEST_URI']))
{
$tt_products_table = "tt_products";
$tt_products_uid = "uid";
}
else
{
$tt_products_table = "tt_products_language";
$tt_products_uid = "prod_uid";
}
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'_DEFAULT' => array(
'init' => array(
'enableCHashCache' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
),
'redirects' => array(),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'nc' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'de' => '0',
'en' => '1',
),
'valueDefault' => 'de',
'noMatch' => 'bypass',
),
array(
'GETvar' => 'cHash',
'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' => 223,
),
'fixedPostVars' => array(),
'postVarSets' => array(
'_DEFAULT' => array(
'erweitert' => array(
array(
'GETvar' =>
'tx_indexedsearch[ext]',
),
),
'browse' => array(
array(
'GETvar' =>
'tx_ttnews[pointer]',
'valueMap' => array(
'weiter' => '1',
'weiter' => '2',
),
),
),
'kategorie' => 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' => '-',
),
),
),
),
'-' => array(
array(
'GETvar' =>
'tx_ttnews[year]',
),
array(
'GETvar' =>
'tx_ttnews[month]' ,
),
array(
'GETvar' => 'tx_ttnews[day]'
,
),
array(
'GETvar' =>
'tx_ttnews[tt_news]',
'lookUpTable' => array(
'table' =>
'tt_news',
'id_field' => 'uid',
'alias_field' =>
'title',
'addWhereClause' =>
' AND NOT deleted',
'useUniqueCache' =>
1,
'useUniqueCache_conf' => array(
'strtolower'
=> 1,
'spaceCharacter' => '-',
),
),
),
),
'aktion' => array(
array(
'GETvar' =>
'tx_ablinklist_pi1[action]',
'valueMap' => array(
'zeige-kategorie' =>
'getviewcatalog',
'neuer-link' =>
'getviewaddnewlink',
'goto' =>
'getviewclickedlink',
'link-detail' =>
'getviewdetailsforlink',
'broken-link' =>
'getviewreportbrokenlink',
'rate-link' =>
'getviewratelink',
),
),
),
'link-kategorie' => array(
array(
'GETvar' =>
'tx_ablinklist_pi1[category_uid]',
'valueMap' => array(
'home' => '0',
),
'lookUpTable' => array(
'table' =>
'tx_ablinklist_category',
'id_field' => 'uid',
'alias_field' =>
'label',
'addWhereClause' =>
' AND NOT deleted',
'useUniqueCache' =>
1,
'useUniqueCache_conf' => array(
'strtolower'
=> 1,
'spaceCharacter' => '-',
),
),
),
),
'link' => array(
array(
'GETvar' =>
'tx_ablinklist_pi1[uid]',
'lookUpTable' => array(
'table' =>
'tx_ablinklist_link',
'id_field' => 'uid',
'alias_field' =>
'label',
'addWhereClause' =>
' AND NOT deleted',
'useUniqueCache' =>
1,
'useUniqueCache_conf' => array(
'strtolower'
=> 1,
'spaceCharacter' => '-',
),
),
),
),
'element' => array(
array(
'GETvar' =>
'tx_ablinklist_pi1[cid]',
),
),
'seite' => array(
array(
'GETvar' =>
'tx_ablinklist_pi1[pointer]',
),
),
'gb-seite' => array(
array(
'GETvar' =>
'tx_veguestbook_pi1[pointer]',
),
),
'details' => array(
array('GETvar' => 'produkt',
'lookUpTable' => array(
'table' =>
$tt_products_table,
'id_field' =>
$tt_products_uid,
'alias_field' =>
'concat(title)',
'addWhereClause' =>
' AND NOT deleted',
languageGetVar =>
L,
'useUniqueCache' =>
1,
'autoUpdate' => 1,
'useUniqueCache_conf' => array(
'strtolower'
=> 1,
'spaceCharacter' => '-',
),
),
),
),
),
),
// configure filenames for different pagetypes
'fileName' => array(
'index' => array(
'rss.xml' => array(
'keyValues' => array(
'type' => 100,
),
),
'rss091.xml' => array(
'keyValues' => array(
'type' => 101,
),
),
'rdf.xml' => array(
'keyValues' => array(
'type' => 102,
),
),
'atom.xml' => array(
'keyValues' => array(
'type' => 103,
),
),
),
),
),
);
?>
--
Was mache ich falsch bzw. welcher Fehler in der Konfiguration ist dafür
verantwortlich?
Viele Grüße
Björn
More information about the TYPO3-german
mailing list