[TYPO3-english] Language Condition

JoH asenau info at cybercraft.de
Thu Jun 3 13:40:45 CEST 2010


>> temp.mainTemplate {
>>   subparts.topmenu.5 = HTML
>>   subparts.topmenu.5 {
>>     value = My home page
>>     stdWrap.lang.es = página personal
>> }

Since it is the HTML there will be no stdWrap at all.
You can use stdWrap functions on the value though:

temp.mainTemplate {
  subparts.topmenu.5 = HTML
  subparts.topmenu.5 {
    value = My home page
    value.lang.es = página personal
}

Anyway it would be better to use a TEXT since HTML should be used for "real" HTML code.
In this case you can use stdWrap functions on the "top level" of the element:

temp.mainTemplate {
  subparts.topmenu.5 = TEXT
  subparts.topmenu.5 {
    value = My home page
    lang.es = página personal
}

Have a look at TSref to find out more about stdWrap functions and how they can be applied to TS elements.

HTH

Joey


-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com


More information about the TYPO3-english mailing list