[Typo3] Declaring css file
schrade at lineara.de
Sun Jun 5 22:04:48 CEST 2005
> 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"
> But it doesn't work, and I can't find a clear documentation on
> Any Idea ?
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">
and it will work.
But for stylesheets, I would recommend page.includeCSS anyway.
More information about the TYPO3-english