[Typo3] different templates in different languages
Peter Russ
peter.russ at 4many.net
Wed Apr 20 21:46:22 CEST 2005
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.
More information about the TYPO3-english
mailing list