Ergebnis 1 bis 2 von 2
  1. #1
    Forum Stammgast
    Registriert seit
    25.09.2007
    Alter
    31
    Beiträge
    142

    Conditions Sprache Html-Template

    Hallo liebe Typo3-Gemeinde,

    ich habe wieder mal ein Problem und bekomme es nicht gelöst. Habe schon mächtig Dokus und FAQs gewälzt... nix.

    Code:
    page = PAGE
    page.typeNum=0
    .
    .
    ##################################################
    ######### TEMPLATE Page
    ##################################################
    page.headerData.12 = TEXT
    page.headerData.12.value(
            <meta name="robots" content="noindex,nofollow" /> 
            <meta name="robots" content="noarchive" />
        <link href="fileadmin/template/1/css/layout_2-1-3.css" rel="stylesheet" type="text/css"/>
        <!--[if lte IE 7]>
        <link href="fileadmin/template/1/css/patches/patch_2-1-3.css" rel="stylesheet" type="text/css" />
        <![endif]-->
        <link rel="shortcut icon" href="/favicon.ico"/>
    )
    page.10 = TEMPLATE
    page.10.template = FILE
    [globalVar=TSFE:page|layout=0]
    page.10.template.file = fileadmin/template/1/template_split.html
    page.10.workOnSubpart = DOCUMENT_BODY
    [end]
    [globalVar=TSFE:page|layout=1]
    page.10.template.file = fileadmin/template/1/template_full.html
    page.10.workOnSubpart = DOCUMENT_BODY
    [end] 
    [globalVar=TSFE:page|layout=2]
    page.10.template.file = fileadmin/template/1/template_prod.html
    page.10.workOnSubpart = DOCUMENT_BODY
    [end] 
    .
    .
    .
    .
    # French language, sys_language.uid = 9
    [globalVar = GP:L = 9]
    page.config.sys_language_uid = 9
    page.config.language = franzoesisch
    page.config.locale_all = fr_FR
    page.config.htmlTag_langKey = fra
    [global]
    # arabic language, sys_language.uid = 10
    [globalVar = GP:L = 10]
    page.config.sys_language_uid = 10
    page.config.language = arabisch
    page.config.locale_all = ar_AR
    page.config.htmlTag_langKey = ar    
    [global]
    
    [globalVar = GP:L = 10,TSFE:page|layout=0]
    page.10.template.file = fileadmin/template/2/template_split.html
    page.10.workOnSubpart = DOCUMENT_BODY
    page.headerData.12.value(
            <meta name="robots" content="noindex,nofollow" /> 
            <meta name="robots" content="noarchive" />
        <link href="fileadmin/template/2/css/layout_2-1-3.css" rel="stylesheet" type="text/css"/>
        <!--[if lte IE 7]>
        <link href="fileadmin/template/2/css/patches/patch_2-1-3.css" rel="stylesheet" type="text/css" />
        <![endif]-->
        <link rel="shortcut icon" href="/favicon.ico"/>
    )
    [end]
    
    # English language, sys_language.uid = 11
    [globalVar=GP:L=11]
    page.config.sys_language_uid = 11
    page.config.language = englisch
    page.config.locale_all = en_GB.ISO88591
    page.config.
    page.config.htmlTag_langKey = eng
    [global]
    Ich hätte einfach gerne dass er unter arabisch ein anderes Template nimmt, machter auch, jedoch nur die CSS wird getauscht. Komischerweise habe ich unter Englisch dann auch das neue Template. Problem ist normal habe ich 3 verschiedene Templates die ich unter Seiteneigetnschaften Layout wechsle. Das muss natürlich auch noch abgefragt werden. Hier beispielhaft für Layout0. Geht aber nicht??

    Könnt ihr den Fehler entdecken?

    Hab jetzt nochmal folgendes probiert, geht leider auch nicht:

    Code:
    page.10 = TEMPLATE
    page.10.template = FILE
    
    [globalVar=TSFE:page|layout=0]
    page.10.template.file = fileadmin/template/1/template_split.html
    [end]
    [globalVar=TSFE:page|layout=1]
    page.10.template.file = fileadmin/template/1/template_full.html
    [end] 
    [globalVar=TSFE:page|layout=2]
    page.10.template.file = fileadmin/template/1/template_prod.html
    [end] 
    
    [globalVar = GP:L = 10]&&[globalVar=TSFE:page|layout=0]
    page.10.template.file = fileadmin/template/2/template_prod.html
    [global]
    [globalVar = GP:L = 10]&&[globalVar=TSFE:page|layout=1]
    page.10.template.file = fileadmin/template/2/template_split.html
    [global]
    [globalVar = GP:L = 10]&&[globalVar=TSFE:page|layout=2]
    page.10.template.file = fileadmin/template/2/template_full.html
    [global]
    
    page.10.workOnSubpart = DOCUMENT_BODY
    Geändert von Endolino (30.01.2009 um 12:43 Uhr)

  2. #2
    Forum Stammgast
    Registriert seit
    25.09.2007
    Alter
    31
    Beiträge
    142

    Daumen runter

    Hallo nochmal,

    leider bin ich übers Wochenende auf kein zufriedenstellendes Ergebnis gestoßen. Nur folgendes hat sich als Übergangslösung erwiesen, würde sich aber in Zukunft nicht dynamisch an neue Seiten anpassen. Ich müsste jedes Mal die Bedingung für neu erstellte Seiten erweitern:

    Code:
    ##################################################
    ######### Language Template Changer
    ##################################################
    [globalVar = GP:L = 10]
    page.10.template.file = fileadmin/template/2/template_split.html
    [end]
    
    [globalVar = GP:L = 10] && [PIDinRootline = 15]
    page.10.template.file = fileadmin/template/2/template_full.html
    [global]
    
    [globalVar = GP:L = 10] && [PIDinRootline = 18,19,20,21]
    page.10.template.file = fileadmin/template/2/template_prod.html
    [global]
    
    [globalVar = GP:L = 10] && [globalVar = TSFE:id = 10,TSFE:id = 9,TSFE:id = 8,TSFE:id = 7,TSFE:id = 16,TSFE:id = 17,TSFE:id = 13,TSFE:id = 12]
    page.10.template.file = fileadmin/template/2/template_full.html
    [global]
    
    [globalVar = GP:L = 10] && [globalVar = TSFE:id = 18]
    page.10.template.file = fileadmin/template/2/template_split.html
    [global]
    [globalVar = GP:L = 10] && [globalVar = TSFE:id = 19]
    page.10.template.file = fileadmin/template/2/template_split.html
    [global]
    [globalVar = GP:L = 10] && [globalVar = TSFE:id = 20]
    page.10.template.file = fileadmin/template/2/template_split.html
    [global]
    [globalVar = GP:L = 10] && [globalVar = TSFE:id = 21]
    page.10.template.file = fileadmin/template/2/template_split.html
    [global]

 

 

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Facebook Kommentare

Ähnliche Themen

  1. Conditions im Template?
    Von clemi im Forum TYPO3 4.x Fragen und Probleme
    Antworten: 7
    Letzter Beitrag: 15.01.2009, 14:51
  2. pro Sprache eigene Vorlage.html
    Von mip|David im Forum TYPO3 4.x Fragen und Probleme
    Antworten: 2
    Letzter Beitrag: 15.12.2008, 08:10
  3. Bilder in HTML-Template?
    Von mustermann im Forum TYPO3 4.x Fragen und Probleme
    Antworten: 3
    Letzter Beitrag: 23.07.2008, 10:22
  4. Sprache in Template-Dateien ändern
    Von Mister Fu im Forum TYPO3 4.x Fragen und Probleme
    Antworten: 2
    Letzter Beitrag: 15.02.2008, 19:05
  5. Welches Template in welcher Sprache
    Von Junior im Forum Änderungen
    Antworten: 6
    Letzter Beitrag: 10.09.2004, 12:10

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73