[Typo3] Declaring css file

michael karatepla at yahoo.fr
Sun Jun 5 21:41:31 CEST 2005


Thank you

I didn't know

page.includeCSS

Michael.

Torsten Schrade wrote:

>michael wrote:
>  
>
>>Hi list
>>
>>I want to put some css declaration in the header of the page and I try this
>>
>>page.headerData.10 = <link href="style.css" rel="stylesheet"
>>type="text/css">
>>
>>But it doesn't work, and I can't find a clear documentation on
>>page.headerData
>>
>>Any Idea ?
>>
>>Michael.
>>
>>
>>
>>    
>>
>Hi Michael,
>
>if you look into TSRef you'll find that headerData is a CARRAY(cObject!
>Array) which means that you have to define some Objects in arrayform.
>Just do it like
>
>page.headerData.10 = HTML
>page.headerData.10.value = <link href="style.css" rel="stylesheet">
>type="text/css">
>
>and it will work.
>
>But for stylesheets, I would recommend page.includeCSS anyway.
>
>Cheers, Torsten
>_______________________________________________
>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