[TYPO3] Modifying one body tag

robin niemeyer robin.niemeyer at gmx.net
Thu Mar 1 16:54:42 CET 2007


Hi,

what about

[globalVar = TSFE:id = 146] && [globalVar = GP:language = de]

to make things explicit?

Robin

Sebastian Baciu [GMAIL2] schrieb:
> Hello,
> 
> So, i managed to examine TsREF and this is what i have come up with by
> myself:
> 
> [globalVar = TSFE:id = 146, GP:language = de]
> 
> page.headerData.20 = TEXT
> page.headerData.20.value(
> <script>This is german!!</script>
> )
> [END]
> 
> And the text shows, but on both the english and the german versions. I tried
> a number of things including using globalstring, but none of them work
> either...
> 
> Can someone point me in the right direction?
> 
> Thanks,
> 
> Sebastian
> 
> On 2/28/07, Tyler Kraft <headhunterxiii at yahoo.ca> wrote:
>> read tsref! its all in there in the section about conditions.... (your
>> looking to use a combination of conditions, and then the language
>> variable with GP instead of TSFE)
>>
>>
>>
>>
>> Sebastian Baciu [GMAIL2] wrote:
>>> Amazing! Worked flawlessly! Thank you very much!
>>>
>>> Just one more question. What if i want to add different modifications
>> for
>>> different languages on the same ID page? Lets say i want to load german
>>> images on the german page and english ones on the english page. How can
>> i
>>> get the conditional statement to operate based on page language?
>>>
>>> Thanks in advance...
>>>
>>> Sebastian
>>>
>>> On 2/27/07, Tyler Kraft <headhunterxiii at yahoo.ca> wrote:
>>>> don't forget to end the condition though...
>>>>
>>>> [globalVar = TSFE:id=73]
>>>> ......
>>>> [global]
>>>>
>>>>
>>>>
>>>> Martin Mifsud wrote:
>>>>> I guess you can either use an extension template, or a condition
>> like:
>>>>> [globalVar = TSFE:id = 99]
>>>>> page.bodyTag = <body onload=blah()>
>>>>>
>>>>> Martin
>>>>>
>>>>> Sebastian Baciu [GMAIL2] wrote:
>>>>>> Hello,
>>>>>>
>>>>>> I need to add a specific bit of javascript to one body tag on a
>>>> specific
>>>>>> page, the javascript will be used to preload images. This only needs
>>>>>> to be
>>>>>> done to one page on the entire site, and i cant seem to find a way
>> to
>>>>>> do it.
>>>>>> Can anyone point me in the right direction?
>>>>>>
>>>>>> Thank You,
>>>>>>
>>>>>> Sebastian
>>>>>> _______________________________________________
>>>>>> TYPO3-english mailing list
>>>>>> TYPO3-english at lists.netfielders.de
>>>>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>>>>>
>>>> _______________________________________________
>>>> TYPO3-english mailing list
>>>> TYPO3-english at lists.netfielders.de
>>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
> _______________________________________________
> 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