Hoi Andi, hallo Liste

Ok, ich habs nochmal versucht mit deinem code... erfolglos. Aber Ich  
habs mehr oder weniger auch nur einfach reinkopiert. Gerne folge ich  
deinem Vorschlag und poste hier mal mein localconf und mein haupt ts- 
template.

Aber kurz noch vorne weg: Wenn coolURI besser oder einfacher  
funktionieren sollte, bin ich absolut offen, darauf umzusteigen. Ich  
möchte bloss einfach ein Sprach-Menu (DE | EN | FR) auf jeder Seite  
anzeigen und die Domains im Stil von "domain.com/en/news/" haben...  
So einfach :-)


---> localconf.php (nach dem Copy/Paste von deinem Code):

<?php
$TYPO3_CONF_VARS['SYS']['sitename'] = '...';

$TYPO3_CONF_VARS['BE']['installToolPassword'] = '***';
$TYPO3_CONF_VARS['BE']['forceCharset'] = 'utf-8';

$TYPO3_CONF_VARS['EXT']['extList'] =  
'tsconfig_help,context_help,extra_page_cm_options,impexp,sys_note,tstemp 
late,tstemplate_ceditor,tstemplate_info,tstemplate_objbrowser,tstemplate 
_analyzer,func_wizards,wizard_crpages,wizard_sortpages,lowlevel,install, 
belog,beuser,aboutmodules,setup,taskcenter,info_pagetsconfig,viewpage,rt 
ehtmlarea,css_styled_content,t3skin';

$typo_db_extTableDef_script = 'extTables.php';

## INSTALL SCRIPT EDIT POINT TOKEN - all lines after this points may  
be changed by the install script!

$typo_db_username = 'USERNAME'; //  Modified or inserted by TYPO3  
Install Tool.
$typo_db_password = 'PASS';     //  Modified or inserted by TYPO3 Install  
Tool.
$typo_db_host = 'localhost';    //  Modified or inserted by TYPO3  
Install Tool.
$TYPO3_CONF_VARS['SYS']['encryptionKey'] =  
'ff06974bc68bbc0e7b7c9ad78856591a';     //  Modified or inserted by TYPO3  
Install Tool.
$TYPO3_CONF_VARS['SYS']['compat_version'] = '4.1';      //  Modified or  
inserted by TYPO3 Install Tool.
$typo_db = 'harvest-net_typo3'; //  Modified or inserted by TYPO3  
Install Tool.
$TYPO3_CONF_VARS['BE']['installToolPassword'] = 'PASS'; //  Modified  
or inserted by TYPO3 Install Tool.
// Updated by TYPO3 Install Tool 23-05-07 12:10:17
$TYPO3_CONF_VARS['EXT']['extConf']['templavoila'] = 'a:1:{s: 
7:"enable.";a:1:{s:13:"oldPageModule";s:1:"1";}}';      // Modified or  
inserted by TYPO3 Extension Manager.
$TYPO3_CONF_VARS['EXT']['extList'] =  
'css_styled_content,tsconfig_help,context_help,extra_page_cm_options,imp 
exp,sys_note,tstemplate,tstemplate_ceditor,tstemplate_info,tstemplate_ob 
jbrowser,tstemplate_analyzer,func_wizards,wizard_crpages,wizard_sortpage 
s,lowlevel,install,belog,beuser,aboutmodules,setup,taskcenter,info_paget 
sconfig,viewpage,rtehtmlarea,t3skin,static_info_tables,sr_language_menu, 
realurl,cab_realurl_languageselector,jb_realurl_regeneration';  //  
Modified or inserted by TYPO3 Extension Manager.
// Updated by TYPO3 Extension Manager 12-06-07 12:01:05

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
     'init' => array(
         'enableCHashCache' => 1,
         'appendMissingSlash' => 'ifNotFile',
         'enableUrlDecodeCache' => 1,
         'enableUrlEncodeCache' => 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,
     ),


      /* Prevars show up in the first part of the URL */
     'preVars' => array(
         array(
             'GETvar' => 'L',
             'valueMap' => array(
                 'de' => '0',
                 'en' => '1',
                 'fr' => '2',
                 'valueDefault' => 'de',
             ),
             'noMatch' => 'bypass',
         ),
     ),


      /* fixedPostVars are limited to a single page in the backend */
     'fixedPostVars' => array(
         /* User Account */
         '52' => array(
             array(
                 'GETvar' => 'tx_srfeuserregister_pi1[cmd]',
             ),
         );


?>



--> Hier das TS-Template (gekürzt):


page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/_template/...

# Set up the real URL extension
config.simulateStaticDocuments = 0
config.baseURL = ...
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all

plugin.tx_srlanguagemenu_pi1 {
   useIsoLanguageCountryCode = 1
}

lib.language = TEXT
         lib.language.postUserFunc = tx_cablanguageselector_pi1->main
         lib.language.postUserFunc{
                 atag.before = <a href="|">
                 atag.beforeACT = <a class="ACT" href="|">
                 atag.after = </a>
                 disableACT = 0
                 linkACT = 1
                 wrap = <li>|</li>
                 startUID = 1                #allWrap =|   /   |*|  
|   /   |*| |
         }


        temp.navi1 = HMENU
        temp.navi1.entryLevel = 0
        temp.navi1 {
          1 = TMENU
          1.NO.allWrap = <li>|</li>
          1.ACT = 1
                1.ACT.allWrap = <li class="menu_act">|</li>
          1.CUR = 1
            1.CUR.allWrap = <li class="menu_cur">|</li>
       }


        temp.navi2 = HMENU
        temp.navi2.entryLevel = 1
        temp.navi2{
        1 = TMENU
        1.NO.allWrap = <span>|</span>
        1.ACT = 1
        1.ACT.allWrap = <span class="menu2_act">|</span>
        1.CUR = 1
        1.CUR.allWrap = <span class="menu2_cur">|</span>
        }
        
        temp. bodyRight = COA
        temp. bodyRight {
        ##stdWrap.required = 1
        ##stdWrap.wrap =  <div id="content_left">|</div>
        ##10 < styles.content.getRight
        }


page.10 = TEMPLATE
page.10 {
        template = FILE
        template.file = fileadmin/_template/...
        workOnSubpart = DOCUMENT_BODY

        subparts.CONTENT < styles.content.get
        subparts.CONTENT.wrap = <div id="content_main">|</div>
                
        subparts.MAINNAVIGATION < temp.navi1
        subparts.MAINNAVIGATION.wrap = <ul id="menu">|</ul>

        subparts.SUBNAVIGATION < temp.navi2
        subparts.SUBNAVIGATION.wrap = <div id="menu_2"><span  
id="menu_2_sepleft">|</span></div>

subparts.LANGMENU < lib.language

}

styles.content.get = CONTENT
styles.content.get {
        table = tt_content
        select.orderBy = sorting
        select.where = colPos=0
        select.languageField = sys_language_uid
}

----


Mag sein, das der eine oder andere Ausschnitt etwas  
zusammengeschustert ist... Ich hab da recht vieles zusammenkopiert  
und einfach mal probiert.. So wirklich viel schnall ich definitiv  
noch nicht... ;)

Danke bestens für hilfreiche Tipps und/oder konstruktive Hinweise...





adrian


-
_______________________________________________
TYPO3-german mailing list
[email protected]
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an