[Typo3] different templates in different languages

Wim Cruysberghs - thuis wim.cruysberghs at telenet.be
Thu Apr 21 10:11:21 CEST 2005


Found it,

This is my setup:


page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/templates/nouvo/styledsbtestmenu.css
page.1 = TEMPLATE
page.1.marks.PAGE_UID = TEXT
page.1.marks.PAGE_UID.field = uid
page.1  {
   template = FILE
   template.file = fileadmin/templates/nouvo/templateNL.html
   template.file.lang.nl = fileadmin/templates/nouvo/templateNL.html
   template.file.lang.fr = fileadmin/templates/nouvo/templateFR.html
   workOnSubpart = DOCUMENT_BODY
   subparts.CONTENT_LEFT < styles.content.getLeft
   subparts.CONTENT_RIGHT < styles.content.getRight
   subparts.CONTENT_BORDER < styles.content.getBorder
   subparts.CONTENT < styles.content.get
   subparts.LEFTNAV < temp.challengeMenu
   subparts.ROOTMENU < temp.pathMenu
 subparts.LANGSEL = PHP_SCRIPT
 subparts.LANGSEL.file = media/scripts/example_languageMenu.php

 }

Greetings to all,

Wim

-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de]On Behalf Of Peter
Russ
Sent: mercredi 20 avril 2005 12:46
To: typo3-english at lists.netfielders.de
Subject: Re: [Typo3] different templates in different languages


Wim Cruysberghs - thuis wrote:
> Hello list,
>
> Maybe this is a stupid question, but I am trying to have different
templates
> for different languages in one - tree option.
>
> I have a ext: languages included, holding
>
> config.linkVars = L
>
> # Dutch language, sys_language.uid = 0
>
> [globalVar = GP:L = 0]
> config.sys_language_uid = 0
> config.language = nl
> temp.template = FILE
> temp.template = fileadmin/templates/nouvo/templateNL.html
>
> [global]
>
> # French language, sys_language.uid = 3
>
> [globalVar = GP:L = 3]
> config.sys_language_uid = 3
> config.language = fr
> temp.template = FILE
> temp.template = fileadmin/templates/nouvo/templateFR.html
>
> [global]
>
> and in my main TS setup
>
>
> page = PAGE
> page.typeNum = 0
> page.stylesheet = fileadmin/templates/nouvo/styledsbtestmenu.css
> page.1 = TEMPLATE
> page.1.marks.PAGE_UID = TEXT
> page.1.marks.PAGE_UID.field = uid
> page.1  {
>    template = temp.template
>       workOnSubpart = DOCUMENT_BODY
>    subparts.CONTENT_LEFT < styles.content.getLeft
>    subparts.CONTENT_RIGHT < styles.content.getRight
>    subparts.CONTENT_BORDER < styles.content.getBorder
>    subparts.CONTENT < styles.content.get
>    subparts.LEFTNAV < temp.challengeMenu
>    subparts.ROOTMENU < temp.pathMenu
>  subparts.LANGSEL = PHP_SCRIPT
>  subparts.LANGSEL.file = media/scripts/example_languageMenu.php
>
>  }
>
> But that doesn't seem to work...
>
> Anyone a suggestion on how to do this?
>
> greetings,
>
> Cruysberghs Wim
>
>
Ref to TSREF and check what is valid and what's not!

Regs. Peter.
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english




More information about the TYPO3-english mailing list