Zum Inhalt springen

RealUrl generiert falsche Unique Aliases

Erstellt am 23. Oktober 2013 · Noch keine Antworten

Tags: Extbase, RealURL, TYPO3 6.x, Frage

markusstrauss ·

Hallo liebes Forum!

Ich habe in eine Extension zur Verwaltung und Buchung von Radtouren geschrieben. Im Backend habe ich meine Datensätze auch bereits ordnungsgemäß lokalisiert (auf Englisch übersetzt). Leider generiert mir RealURL seit neuestem falsche Unique Aliases. Siehe diesen Screenshot:
Bild: drf.strauss.co.at/…/realurl.png

Der Datensatz mit der UID 22 (Apulien) erhält einen richtigen Alias. Die Übersetzung von Apulien hat die UID 92. Das generiert RealURL auch richtig laut meiner Konfiguration. Leider verweist aber auch auf die ID22 und nicht auf 92, was dazu führt, dass ich immer nur die Deutsche Version meines Objekts geliefert bekomme.

domain.com/radtouren/apulien-22/detail/ funktioniert einwandfrei
domain.com/en/bicycle-tours/eng-apulien-92/detail/ funktioniert auch, liefert aber den deutschen Datensatz

Jemand eine Idee, woran das liegen könnte?

Hier noch meine RealURL-Konfiguration:

<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
  '_DEFAULT' => 
  array (
    'init' => 
    array (
      'enableCHashCache' => true,
      'appendMissingSlash' => 'ifNotFile,redirect',
      'adminJumpToBackend' => true,
      'enableUrlDecodeCache' => true,
      'enableUrlEncodeCache' => true,
      'emptyUrlReturnValue' => '/',
    ),
    'pagePath' => 
    array (
      'type' => 'user',
      'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
      'spaceCharacter' => '-',
      'languageGetVar' => 'L',
      'rootpage_id' => '1',
    ),
    'fileName' => 
    array (
      'defaultToHTMLsuffixOnPrev' => 0,
      'acceptHTMLsuffix' => 1,
      'index' => 
      array (
        'print' => 
        array (
          'keyValues' => 
          array (
            'type' => 98,
          ),
        ),
      ),
    ),
    'postVarSets' =>
    array(
    	'_DEFAULT' =>
    	array(
    		'category' => array(
    			array(
    				'GETvar' => 'tx_fustoursys_tourlist[category]',
    				'lookUpTable' => array(
    					'table' => 'tx_fustoursys_domain_model_category',
    					'id_field' => 'uid',
    					'alias_field' => 'name',
    					'useUniqueCache' => 1,
    					'useUniqueCache_conf' => array(
    						'strtolower' => 1,
    						'spaceCharacter' => '-',
    					),
    				),
    			),
    		),
    		'country' => array(
    			array(
    				'GETvar' => 'tx_fustoursys_tourlist[country]',
    				'lookUpTable' => array(
    					'table' => 'tx_fustoursys_domain_model_country',
    					'id_field' => 'uid',
    					'alias_field' => 'name',
    					'useUniqueCache' => 1,
    					'useUniqueCache_conf' => array(
    						'strtolower' => 1,
    						'spaceCharacter' => '-',
    					),
    				),
    			),
    		),
    		'tour' => array(
    			array(
    				'GETvar' => 'tx_fustoursys_tourlist[tour]',
    				'lookUpTable' => array(
    					'table' => 'tx_fustoursys_domain_model_tour',
    					'id_field' => 'uid',
    					'alias_field' => "CONCAT(title,'-',uid)",
    					'languageField' => 'sys_language_uid',
    					'useUniqueCache' => 1,
    					'useUniqueCache_conf' => array(
    						'strtolower' => 1,
    						'spaceCharacter' => '-',
    					),
    					'languageGetVar' => 'L',
    					'languageExceptionUids' => '',
    					'languageField' => 'sys_language_uid',
    					'transOrigPointerField' => 'l10n_parent',
    					'autoUpdate' => 1,
    				),
    			),
    			array(
    				'GETvar' => 'tx_fustoursys_tourlist[action]',
    				'valueMap' => array(
    					'detail' => 'show',
    				),
    				'noMatch' => 'bypass',
    			),
    		),
    		'tour2book' => array(
    			array(
    				'GETvar' => 'tx_fustoursys_booking[tour]',
    				'lookUpTable' => array(
    					'table' => 'tx_fustoursys_domain_model_tour',
    					'id_field' => 'uid',
    					'alias_field' => "CONCAT(title,'-',uid)",
    					'languageField' => 'sys_language_uid',
    					'useUniqueCache' => 1,
    					'useUniqueCache_conf' => array(
    						'strtolower' => 1,
    						'spaceCharacter' => '-',
    					),
    					'languageGetVar' => 'L',
    					'languageExceptionUids' => '',
    					'languageField' => 'sys_language_uid',
    					'transOrigPointerField' => 'l10n_parent',
    					'autoUpdate' => 1,
    				),
    			),
    		),
    		'step' => array(
    			array(
    				'GETvar' => 'tx_fustoursys_booking[action]',
    			),
    		),
    	),
    ),
    
    'preVars' => 
    array (
      0 => 
      array (
        'GETvar' => 'L',
        'valueMap' => 
        array (
          //'de' => '0',
          'en' => '1',
        ),
        'noMatch' => 'bypass',
      ),
      array(
      	'GETvar' => 'tx_fustoursys_tourlist[controller]',
      	'noMatch' => 'bypass',
      ),
      array(
      	'GETvar' => 'tx_fustoursys_booking[controller]',
      	'noMatch' => 'bypass',
      ),
    ),
  ),
);
?>