[TYPO3-german] RealUrl und Mehrsprachigkeit

Christian Leicht usenet at schani.com
Mon Jun 30 19:22:21 CEST 2014


Hallo,

ich habe das Problem mit meiner RealUrl Konfiguration, das bei einer
2-sprachigen Seite (en,de) bei Englisch der 2. Level nur in deutsch
angezeigt wird. Also:

DE: www.domain.com/de/leistungen/forschung.html
EN: www.domain.com/en/services/forschung.html

Die englischen Seiten sind vorhanden. Können z.B. über
index.php?id=25&L=1 auch aufgerufen werden. Nur RealUrl gibt ab dem 2.
Level in Deutsch aus. Das mach sich bei Suchmaschinen nicht so gut.

Was ist den hier auch besser? Als Endung .html angeben oder nur eine
Verzeichnis? www.domain.com/de/leistungen/forschung.html oder
www.domain.com/de/leistungen/forschung/


Besten Dank für Hilfe

Christian

Hier meine RealUrl Config Datei:

<?php
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
    '_DEFAULT' => array(
        'init' => array(
            'enableCHashCache' => TRUE,
            'appendMissingSlash' => 'ifNotFile,redirect',
            'enableUrlDecodeCache' => TRUE,
            'enableUrlEncodeCache' => TRUE,
            'postVarSet_failureMode' => 'redirect_goodUpperDir',
            'emptyUrlReturnValue' => '/',
            'respectSimulateStaticURLs' => FALSE,
            'enableAllUnicodeLetters' => FALSE,
            'doNotRawUrlEncodeParameterNames' => TRUE
					
        ),
        'redirects' => array(),
        'preVars' => array(
            array(
                'GETvar' => 'L',
                'valueMap' => array(
                    'de' => '0',
                    'en' => '1',
                ),
                'defaultValue' => 'en',
                'noMatch' => '1',
            ),
        ),
        'pagePath' => array(
            'type' => 'user',
            'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'spaceCharacter' => '-',
            'languageGetVar' => 'L',
            'expireDays' => 7,
            'rootpage_id' => 1,   // Muss geprüft und gegebenenfalls
angepasst werden!
            'disablePathCache' => FALSE,
            'autoUpdatePathCache' => TRUE,
            'firstHitPathCache' => TRUE
        ),

        # Doku: http://forge.typo3.org/projects/extension-news/wiki/RealURL

        'fixedPostVars' => array(
            'newsDetailConfiguration' => array(

                array(
                    'GETvar' => 'tx_news_pi1[day]',
                    'noMatch' => 'bypass',
                ),
                array(
                    'GETvar' => 'tx_news_pi1[month]',
                    'noMatch' => 'bypass',
                ),
                array(
                    'GETvar' => 'tx_news_pi1[year]',
                    'noMatch' => 'bypass',
                ),

                array(
                    'GETvar' => 'tx_news_pi1[news]',
                    'lookUpTable' => array(
                        'table' => 'tx_news_domain_model_news',
                        'id_field' => 'uid',
                        'alias_field' => "CONCAT(uid, '-',
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,
                    )
                )
            ),

            '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' => '-'
                        )
                    )
                )
            ),
            // 19 ist die ID der Seite, auf der Nachrichten in der
Detailansicht angezeigt werden
            '35' => 'newsDetailConfiguration',
            #'53' => 'newsDetailConfiguration',

            // Die nächsten 2 Einträge werden in der aktuellen Webseite
nicht verwendet
            # '71' => 'newsTagConfiguration',
            # '72' => 'newsCategoryConfiguration',
        ),

        'postVarSets' => array(
            '_DEFAULT' => array(
                // url rewriting for ve_guestbook - START
                'seite' => array(
                    array(
                        'GETvar' => 'tx_veguestbook_pi1[pointer]'
                    )
                ),
                // url rewriting for ve_guestbook - END
                'controller' => array(
                    array(
                        'GETvar' => 'tx_news_pi1[action]',
                        'noMatch' => 'bypass'
                    ),
                    array(
                        'GETvar' => 'tx_news_pi1[controller]',
                        'noMatch' => 'bypass'
                    )
                ),

                'dateFilter' => array(
                    array(
                        'GETvar' => 'tx_news_pi1[overwriteDemand][year]',
                    ),
                    array(
                        'GETvar' => 'tx_news_pi1[overwriteDemand][month]',
                    ),
                ),
            ),
        ),
        // configure filenames for different pagetypes
        'fileName' => array(
            'defaultToHTMLsuffixOnPrev' => 1,
            'index' => array(
                // Tip: Printausgaben besser über CSS definieren.
                'print.html' => array(
                    'keyValues' => array(
                        'type' => 98,
                    ),
                ),
                '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,
                    ),
                ),
                'dokument.pdf' => array(
                    'keyValues' => array(
                        'type' => 123,
                    ),
                ),
            ),
        ),
    ),
);

?>


More information about the TYPO3-german mailing list