[Typo3] Add css with ts on a single page

Ries van Twisk typo3 at rvt.dds.nl
Mon Dec 5 14:10:18 CET 2005


Vlatko Šurlan wrote:

>Mathias Schreiber [wmdb] wrote:
>  
>
>>[globalVar = TSFE:id = 10]
>>page.headerData.5 = TEXT
>>page.headerData.5.value (
>><style>
>>body {
>>    font-size:2000em;
>>}
>>)
>>[end]
>>
>>Get the point?
>>    
>>
>
>This is exactly what I wanted. One more question. How can I make sure I 
>do not overwrite something in page.headerData? Or in other words how do 
>I make sure page.headerData.5 is not used already?
>_______________________________________________
>  
>
You can't (as far as I know), also you cannot add to header data liek 
you would do in a string.

What I do is this structure:

page.headerData.PID = TEXT

where PID is the page ID on which I want to add the CSS.
This helps me, but not prevent of adding duplicate entry's.

Ries






More information about the TYPO3-english mailing list