Zum Inhalt springen

Sprache auch im Pfad?

Erstellt am 29. Dezember 2008 · 6 Antworten · letzte Antwort am 5. Januar 2009

Tags: Frage

TheFreeman ·

Hallo zusammen.

Ich habe eine mehrsprachige Seite (Deutsch, Englisch, Griechisch).
Im Pfad habe ich nun folgendes stehen

.../de/preise/tauchkurse.html

Wie kann ich auch hier die Begriffe der anderen Sprachen drin haben?
Englisch zum Beispiel:

.../en/prices/courses.html

bisher steht hier nur:

.../en/preise/tauchkurse.html

Wie kann ich das machen? Danke schon mal.

TheFreeman ·

realURL upgedatet von 1.5.2 nach 1.5.3
Typo3 upgedatet von 4.2.2 nach 4.2.3
und hier ist meine Konfig:

<?php 
$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' => 'L',
                             'valueMap' => array(
                             			'de' => '0',
                                                'en' => '1',
                                                'gr' => '2',
                                        ),
                              # 'valueDefault' => 'en',
                              'noMatch' => 'bypass',
                        ),
                         array(
                             'GETvar' => 'L',
                             'valueMap' => array(
                                                'en' => '1',
                                        ),
                                '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,
        ),


      'postVarSets' => array(
            '_DEFAULT' => array(
                // news archive parameters
                'archive' => array(
                    array(
                        'GETvar' => 'tx_ttnews[year]' ,
                        ),
                    array(
                        'GETvar' => 'tx_ttnews[month]' ,
                            'valueMap' => array(
                            'january' => '01',
                            'february' => '02',
                            'march' => '03',
                            'april' => '04',
                            'may' => '05',
                            'june' => '06',
                            'july' => '07',
                            'august' => '08',
                            'september' => '09',
                            'october' => '10',
                            'november' => '11',
                            'december' => '12',
                            )
                        ),
                    ),
                // news pagebrowser
                'browse' => array(
                    array(
                        'GETvar' => 'tx_ttnews[pointer]',
                        ),
                    ),
                // news categories
                'select_category' => array (
                    array(
                        'GETvar' => 'tx_ttnews[cat]',
                        ),
                    ),
                // news articles and searchwords
                'article' => array(
                    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' => '-',
                                ),
                            ),
                        ),
                    array(
                        'GETvar' => 'tx_ttnews[swords]',
                        ),
                    ),
                ),             
            ),

      'fileName' => array(
            'defaultToHTMLsuffixOnPrev'=>1,
            '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,
                    ),
                ),
            ),
        ),
 );
 php?>
just2b ·

meine konfig läuft und schaut ca so aus

$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    'pagePath' => array(
        'type' => 'user',
        'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
        'spaceCharacter' => '-',
        'languageGetVar' => 'L',
        'expireDays' => '3',
        'rootpage_id' => 3,
        'firstHitPathCache'=>1
    ),
  	'init' => array(
			'enableCHashCache' => true,
	   	'enableCHashCache' => 1,
			'respectSimulateStaticURLs' => 0,
			'enableUrlDecodeCache' => 1,
			'enableUrlEncodeCache' => 1
		),
    'preVars' => array(
        array(
            'GETvar' => 'L',
            'valueMap' => array(
                'en' => '1',
                'us' => '2',
            ),
            'noMatch' => 'bypass',
        ),
        array( 
          'GETvar' => 'no_cache',
          'valueMap' => array( 
            'nc' => 1, 
          ),
          'noMatch' => 'bypass',
			  ),        
    ),
    'fileName' => array (
    		'defaultToHTMLsuffixOnPrev' => true,
        'index' => array(
            'chgallery.rss' => array(
                'keyValues' => array (
                    'type' => 9713,
                )
            ),
            'releasecall.html' => array(
                'keyValues' => array (
                    'type' => 9773,
                )
            ),   						     
        ),
    ),
    'postVarSets' => array(
        '_DEFAULT' => array (
					'details' => array(
						array(
							'GETvar' => 'tx_releaseplan_pi1[year]',
						),
						array(
							'GETvar' => 'tx_releaseplan_pi1[month]',
						),						
						array(
							'GETvar' => 'tx_releaseplan_pi1[cid]',
						),						
						array(
							'GETvar' => 'tx_releaseplan_pi1[action]',
						),			

					), 
  				'pricecatalog' => array(
  					array(
  						'GETvar' => 'tx_pricecatalog_pi1[catalog]',
  						),
  					array(
  						'GETvar' => 'tx_pricecatalog_pi1[pdf]',
  						),
  				),					       
  				'key' => array(
  					array(
  						'GETvar' => 'tx_rgecard_pi1[key]',
  						),
  				),
  				'del' => array(
  					array(
  						'GETvar' => 'tx_rgecard_pi1[delete]',
  						),
  				),
					'galerie' => array(
						array(
							'GETvar' => 'tx_chgallery_pi1[pointer]',
						),
						array(
							'GETvar' => 'tx_chgallery_pi1[dir]',
						),						
						array(
							'GETvar' => 'tx_chgallery_pi1[single]',
						),
						array(
							'GETvar' => 'tx_chgallery_pi1[ceid]',
						),

					),				 
					'comment' => array(
						array(
							'GETvar' => 'tx_skpagecomments_pi1[answer]',
						),
					),	
		      'remove' => array(
		        array(
		          'GETvar' => 'tx_personalpage_pi1[remove]',
		          'lookUpTable' => array(
		            'table' => 'tt_content',
		            'id_field' => 'uid',
		            'alias_field' => 'header',
		            'addWhereClause' => ' AND NOT deleted',
		            'useUniqueCache' => 1,
		            'useUniqueCache_conf' => array(
		              'strtolower' => 1,
		              'spaceCharacter' => '-',
		            ),
		            'autoUpdate' => 1,
		            'expireDays' => 180,
		          ),
		        ),
		      ),
		      'add' => array(
		        array(
		          'GETvar' => 'tx_personalpage_pi1[add]',
		          'lookUpTable' => array(
		            'table' => 'tt_content',
		            'id_field' => 'uid',
		            'alias_field' => 'header',
		            'addWhereClause' => ' AND NOT deleted',
		            'useUniqueCache' => 1,
		            'useUniqueCache_conf' => array(
		              'strtolower' => 1,
		              'spaceCharacter' => '-',
		            ),
		            'autoUpdate' => 1,
		            'expireDays' => 180,
		          ),
		        ),
		      ),
		    
					'ttid' => array(
						array(
							'GETvar' => 'ttuid',
						),
					),						  
        ),      
    ),

    

    
);