[TYPO3] Problem with TypoScript conditions and page.includeCSS

bernd wilke xoonsji02 at sneakemail.com
Mon Mar 10 14:54:00 CET 2008


on Mon, 10 Mar 2008 13:14:26 +0100, Stephen Bungert wrote:

> Here is the TypoScript I'm using to load various stylesheets:
> 
> ### CSS Includes ###
> ### ------------ ##
> 
> [global]
> page.includeCSS {
> 
>   file1 = fileadmin/templates/css/fdm_reset.css file1.media = all
>   file2 = fileadmin/templates/css/fdm_core.css file2.media = screen
>   file3 = fileadmin/templates/css/fdm_print.css file3.media = print
> }
> [end]

END?
end of what?
 
> [browser = ie]

the browsername of internet explorer is 'msie' 

> page.includeCSS {
> 
>   file4 = fileadmin/templates/css/fdm_ie7.css file4.media = screen
> }
> [end]
> 
> [browser = opera]
> page.includeCSS {
> 
>   file5 = fileadmin/templates/css/fdm_opera9.css file5.media = screen
> }
> [end]
> 
> [globalVar = TSFE:id = 7] {

what a construct is this?
don't mess with C/PHP/...-syntax

 
>   file6 = fileadmin/templates/css/fdm_team.css file6.media = screen
> }
> [end]
> 
> Whatever browser I try, only the first css (in the global condition) are
> attached. File 6 never seems to get attached, even when PID is 7.
> 
> Have I done something wrong with my TypoScript? Can someone check the
> syntax? Is this how alternate CSS files should be attached?

syntaxcheck can be done with object-browser and template-analyzer!

bernd
-- 
http://www.pi-phi.de/t3v4/cheatsheet.html


More information about the TYPO3-english mailing list