[Typo3] Conditional include of CSS file
Søren Schaffstein
soeren.schaffstein at media-lights.de
Wed Aug 10 18:00:59 CEST 2005
Hi list,
I'm trying to include a CSS file in my template only if there is no content in the right column on a page.
I can set the wrap conditionally with:
subparts.RIGHT_COLUMN < styles.content.getRight
subparts.RIGHT_COLUMN.stdWrap.wrap = <div class="right-column"> | </div>
subparts.RIGHT_COLUMN.stdWrap.required = 1
but how can I set the CSS based on such a condition? Any ideas? I couldn't find anything in the forum - especially since many links don't work anymore. (Is there a solution to the broken link problem I don't know?)
This is what I'd like to set when the right column is empty:
page.headerData {
10 = TEXT
10.value = <style type="text/css" title="No right column"> /*<![CDATA[*/ .content { margin-right: 10px; } /*]]>*/ </style>
}
- Søren Schaffstein (schaffstein)
-----------------------
The mailing list archive is found here:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/
More information about the TYPO3-english
mailing list