[TYPO3-german] http://xyz.de/deutsch/deutsch/beispiel.html anstatt von http://xyz.de/deutsch/beispiel.html

Andreas Broscheit m.overkill at gmx.de
Thu Jan 19 16:02:04 CET 2006


Irgendwie sind die Probleme jetzt mit allen Domains vorhanden... :-(  
(Ich lösche aber immer alle Caches, die für RealUrl wichtig sind.)

Geht man zum Beispiel auf 
http://www.quality-manager.biz/de/einfuehrung-und-auditierungen-von-qm-systemen.html 
, so sieht man das Problem. Alle dort vorhandenen Links haben /de/de. Es 
dürfte aber nur ein /de dastehen.

Typo3 Setup:
---------------------------------------------------------------------------------------------
config.simulateStaticDocuments = 0
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all

 [hostname = www.qualitaetsmanager.biz]
config.baseURL = http://www.qualitaetsmanager.biz/
 [global]
 [hostname = www.xn--software-qualittsmanager-4bc.de]
config.baseURL = http://www.xn--software-qualittsmanager-4bc.de/
 [global]
 [hostname = www.quality-manager.biz]
config.baseURL = http://www.quality-manager.biz/
 [global]
 [hostname = www.qm-konzepte.de]
config.baseURL = http://www.qm-konzepte.de/
 [global]
 [hostname = www.qualitaetsmanager.net]
config.baseURL = http://www.qualitaetsmanager.net/
 [global]
 [hostname = www.software-qualitaetsmanager.de]
config.baseURL = http://www.software-qualitaetsmanager.de/
 [global]

config.simulateStaticDocuments_noTypeIfNoTitle = 1
#Die Länge des Seitentitels der mit in die URL aufgenommen werden soll
#config.simulateStaticDocuments_addTitle = 201
#config.simulateStaticDocuments_pEnc=md5
#Codieren des Parameters für die Sprachübergabe. Hier Querystring 
Parameter `L'
#config.simulateStaticDocuments_pEnc_onlyP = L

config.spamProtectEmailAddresses = 2
config.spamProtectEmailAddresses_atSubst = (at)

page.config.index_enable = 1
config.index_enable = 1
page.config.index_externals = 1
config.index_externals = 1
plugin.tx_indexedsearch.search.rootPidList = 140

config.admPanel = 1

##################################
# Mehrsprachigkeit
# Setting up the language variable "L" to be passed along with links
config.linkVars = L
config.sys_language_uid = 0
config.language = de
config.locale_all = de_DE
# English language, sys_language.uid = 3
[globalVar = GP:L = 3]
config.sys_language_uid = 3
config.language = en
config.locale_all = english
[globalVar = GP:L = 6]
config.sys_language_uid = 6
config.language = ru
config.locale_all = ru_RU
[global]
temp.LANGUAGE < plugin.tx_srlanguagemenu_pi1
temp.LANGUAGE.languagesUidsList = 0,3,6
temp.LANGUAGE.defaultLayout= 0

plugin.tx_srlanguagemenu_pi1.flag.CUR.stdWrap.wrap = <div class="CUR"> | 
</div>
plugin.tx_srlanguagemenu_pi1.link.CUR.stdWrap.wrap = <div class="CUR"> | 
</div>

#######################################

main = PAGE
main.config.index_enable =1
main.typeNum = 0
#main.meta.DATE = asfsdfsd
main.meta.AUTHOR = QM-Konzepte www.qm.konzepte.de
main.shortcutIcon = fileadmin/qm-konzepte/template/modernes_webdesign.ico
main.stylesheet = fileadmin/qm-konzepte/template/webdesign_typo3.css
main.headerData = fileadmin/qm-konzepte/template/Anti-Spam.js
main.meta.KEYWORDS.field = keywords
main.headerData.10 = TEXT
main.headerData.10.value = <link rel="alternate" 
type="application/rss+xml" title="Qualitätsmanagement" href="/rss.xml">
main.10 = TEMPLATE
main.10 {
template = FILE
template.file = fileadmin/qm-konzepte/template/qm-konzepte.htm
workOnSubpart = DOCUMENT_BODY

######################
# Pfadmenü############
          marks.PFAD = HMENU
          marks.PFAD {
                    special = rootline
                    special.range = 0 | -1
                    1 = TMENU
                    1.NO.allWrap = | &nbsp; / &nbsp; |*| | &nbsp; / 
&nbsp; |*| |
          }

marks.LANGUAGE < temp.LANGUAGE
marks.LOGINBOX < plugin.tx_loginboxmacmade_pi2

plugin.tt_news.general_stdWrap.encapsLines.wrapNonWrappedLines = |
plugin.tt_news.general_stdWrap.encapsLines.wrapNonWrappedLines = <b>|</b>
plugin.tx_damdownloads_pi1.listView.std.title.wrap = <b><strong> | 
</strong></b>
dmc_imageAlttext.styles.content.imgtext.captionWrap = <div 
class=bildunterschrift>|</div>
dmc_imageAlttext.styles.content.imgtext.captionWrap >
tt_content.image.caption.1.wrap = |
tt_content.image.caption.1.fontTag = <div class="bildunterschrift">|</div>
plugin.tt_news.displaySingle.title_stdWrap.wrap = <h1>|</h1>
plugin.tt_news.displayLatest.subheader_stdWrap.ifEmpty.field = 
news_latest_bodytext
plugin.tt_news.displayList.subheader_stdWrap.ifEmpty.field = 
news_list_bodytext
plugin.tt_news.general_stdWrap.parseFunc.tags.typolist.1.parseFunc.sword =
plugin.tt_news.general_stdWrap.encapsLines.wrapNonWrappedLines =
plugin.tx_damdownloads_pi1.singleView.std.category.wrap =
main.10.marks.NEWS.displaySingle.caption_stdWrap.wrap =

}

##################################
# Code saeubern
 ##############################################
# Entfernen der CSS-Styles der Erweiterungen:
plugin.tx_cssstyledimgtext._CSS_DEFAULT_STYLE =
plugin.tx_spdirectory_pi1._CSS_DEFAULT_STYLE =
plugin.tx_lzgallery_pi1._CSS_DEFAULT_STYLE =
plugin.tx_lzgallery_pi1_simple._CSS_DEFAULT_STYLE =
plugin.tx_srsendcard_pi1._CSS_DEFAULT_STYLE =
plugin.tt_news._CSS_DEFAULT_STYLE =
plugin.tx_indexedsearch._CSS_DEFAULT_STYLE =
plugin.tx_newloginbox_pi3._CSS_DEFAULT_STYLE =
plugin.tx_srlanguagemenu_pi1._CSS_DEFAULT_STYLE =
plugin.tx_glossarysearch_pi1._CSS_DEFAULT_STYLE =
plugin.tx_quickpoll._CSS_DEFAULT_STYLE =
plugin.tx_rlmpsecuredownloads_pi1._CSS_DEFAULT_STYLE =
plugin.tx_slideshow_pi1._CSS_DEFAULT_STYLE =
################################

################################
#generate xhtml-code
#config.doctype = xhtml_trans
#config.doctype = <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
main.config {
#removeDefaultJS = 1
#setJS_openPic = 0
#setJS_mouseOver = 0
inlineStyle2TempFile = 1
metaCharset = utf-8
xhtml_cleaning = all
doctype = xhtml_trans
xmlprologue = none
# Für den Quirks Mode des IE
#config.doctypeSwitch = {$doctypesw_cond}
#htmlTag_langKey = de-DE
}
-----------------------------------------------------------------------------------------------------

Alle diese Domains habe ich auch in Typo3 als Domains am Ursprunfgspunkt 
(id=140) angelegt und jedesmal die Option "*Transfer parameters to 
Redirect URL" *eingeschaltet.

ext_localconfig.php (realURL):
----------------------------------------------------------------------------------------------------
<?php

$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc']['tx_realurl'] 
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc']['tx_realurl'] 
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearPageCacheEval']['tx_realurl'] 
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->clearPageCacheMgm';

$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urldecodecache'] 
= 'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urlencodecache'] 
= 'tx_realurl_urlencodecache';

 $TYPO3_CONF_VARS['FE']['addRootLineFields'] .= 
',tx_realurl_pathsegment,alias,nav_title,title';

 // realurl config
 $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
    '_DEFAULT' => array(
         'init' => array(
             'enableCHashCache' => 0,
             // 'appendMissingSlash' => 'ifNotFile',
             'enableUrlDecodeCache' => 0,
            // 'enableUrlEncodeCache' => 1,
             'enableUrlEncodeHash' => 0,
             ),
         'redirects' => array(),
         'preVars' => array(
             //match &no_cache=1 with path prefix /nc
             array(
                 'GETvar' => 'no_cache',
                 'valueMap' => array(
                     'nc' => 1,
                     ),
                 'noMatch' => 'bypass',
                 ),
             //multiple language matching L=2 is replaced by /dk
             //value are user defined depending of the order you've 
inserted your
             //alternative language in TYPO3. See sys_language table for ID
             array(
                 'GETvar' => 'L',
                'valueMap' => array(
                    'ru' => '6',
                    // 'russisch' => '6',
                    'en' => '3',
                    // 'englisch' => '3',
                    'de' => '0',
                    // 'deutsch' => '0',
                    ),
                // 'noMatch' => 'bypass',
                 'valueDefault' => 'de',
                 ),
              ),
          // use extended page name rendering
          // page names are converted to readalbe 
page/sub-page/sub-sub-page.html
         'pagePath' => array(
          'type' => 'user',
             'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
             'spaceCharacter' => '-',
             'languageGetVar' => 'L',
             'expireDays' => 7,
             'rootpage_id' => 140,
             // 
'encodeTitle_userProc'=>'EXT:realurl/tx_realurl_encodeTitle_userProc.php:&user_encodeDates',
             ),
         'fixedPostVars' => array(),
         // match extension parameter
         'postVarSets' => array(
             '_DEFAULT' => array(
                 // archive
                 'period' => array(
                     array(
                         'condPrevValue' => -1,
                         'GETvar' => 'tx_ttnews[pS]' ,
                         // 'valueMap' => array(
                         //
                         // )
                         ),
                     array(
                         'GETvar' => 'tx_ttnews[pL]' ,
                         // 'valueMap' => array(
                         //
                         // )
                         ),
                     array(
                         'GETvar' => 'tx_ttnews[arc]' ,
                         'valueMap' => array(
                             'archived' => 1,
                             'non-archived' => -1,
                             )
                          ),
                     ),
                 // pagebrowser
                 'browse' => array(
                     array(
                         'GETvar' => 'tx_ttnews[pointer]',
                         ),
                      ),
                 'select' => 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,
                                 ),
                             ),
                         ),
                     ),

            // backPid link
 //                'back_to' => array(
 //                    array('GETvar' => 'tx_ttnews[backPid]',
 //                     'lookUpTable' => array('table' => 'pages',
 //                            'id_field' => 'uid',
 //                            'alias_field' => 'title',
 //                            'addWhereClause' => ' AND NOT deleted',
 //                            'useUniqueCache' => 1,
 //                            'useUniqueCache_conf' => 
array('strtolower' => 1,
 //                                'spaceCharacter' => '-',
 //                               ),
 //                           ),
 //                        ),
 //                    ),
           'article' => array(
                       array(
                           'GETvar' => 'tx_ttnews[backPid]',
                           ),
                       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]'
                         ),
                      ),
                  ),
             ),
         // map some type to file name: rss.xml = &typo=100
         'fileName' => array(
              'index' => array(
                   'rss.xml' => array(
                   'keyValues' => array(
                   'type' => 100,
                   ),
                   ),
                   'slideshow.xml' => array(
                   'keyValues' => array(
                   'type' => 9005),
                  ),
                 ),
             // add .html suffix to the end of the path generated
             'defaultToHTMLsuffixOnPrev' => 1,

       ),
    ),

'www.qm-konzepte.de' => '_DEFAULT',
'www.quality-manager.biz' => '_DEFAULT',
'www.qualitaetsmanager.biz' => '_DEFAULT',
'www.qualitaetsmanager.net' => '_DEFAULT',
'www.xn--software-qualittsmanager-4bc.de' => '_DEFAULT',
'www.software-qualitaetsmanager.de' => '_DEFAULT',
  );
?>



More information about the TYPO3-german mailing list