[Typo3] Typoscript to detect which language is selected

JoH info at cybercraft.de
Wed Jun 8 14:17:37 CEST 2005


> Does anybody now how to test the current language and than write a
> condition in which the set up is made in accordance with the current
> language ?
>
> Here is the sample code I'ld like to adapt :
>
> # Menu cObject (menu en haut statique)
> temp.menuhaut = COA
> temp.menuhaut {
>   40 = TEXT
>   40.data = field:uid
>   40.wrap = <span class="menu_haut_actif">&nbsp;<a
> href="?id=|&L=0">Fr</a>&nbsp;</span>
>   50 = TEXT
>   50.data = field:uid
>   50.wrap = <span class="menu_haut_actif">&nbsp;<a
> href="?id=|&L=2">De</a>&nbsp;</span>
>   60 = TEXT
>   60.data = field:uid
>   60.wrap = <span class="menu_haut_actif">&nbsp;<a
> href="?id=|&L=3">En</a>&nbsp;</span>
> }

Well - first you should know there is something like HMENU --> special =
language.
This means: No special COA solution needed anymore. (But of course you can
stick with it, if you like ...)

Second thing: Have a look at conditions in TSref:
http://typo3.org/documentation/document-library/doc_core_tsref/GlobalString/
You might notice the comment at the bottom of this page.

;-)

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau





More information about the TYPO3-english mailing list