[TYPO3] Problem with TypoScript conditions and page.includeCSS
Stephen Bungert
s.bungert at metrinomics.de
Mon Mar 10 15:07:24 CET 2008
> what a construct is this?
> don't mess with C/PHP/...-syntax
What do you mean?
I changed it to msie, it still doesn't show
-----Ursprüngliche Nachricht-----
Von: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] Im Auftrag von bernd
wilke
Gesendet: Montag, 10. März 2008 14:54
An: typo3-english at lists.netfielders.de
Betreff: Re: [TYPO3] Problem with TypoScript conditions and page.includeCSS
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
_______________________________________________
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