In the typoscript object browser you can enable certain conditions (that already exist in the TypoScript), and then see what happens to typo3 when the conditions you have defined in your typoscript are met.
-----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Othmar Voser Gesendet: Dienstag, 11. März 2008 09:20 An: [email protected] Betreff: Re: [TYPO3] Problem with TypoScript conditions and page.includeCSS Sorry I am not a professional, so I am wondering how you "simulate" the browser-switch... But however, when I take IE and surf on the pages the right CSS are chosen. The same happens with the Firefox etc. These construct is working very well! Stephen Bungert schrieb: > When I simulate the condition of the browser being IE in the object browser > I see the IE file appear in the object browser > > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag von Othmar > Voser > Gesendet: Montag, 10. März 2008 17:02 > An: [email protected] > Betreff: Re: [TYPO3] Problem with TypoScript conditions and page.includeCSS > > So I do it: > > [browser = msie] > page.includeCSS { > file1 = fileadmin/styles/dim_home_00_IE.css > file2 = fileadmin/styles/tt_news_v2_styles_IE.css > file3 = fileadmin/styles/defaultstylesheet_IE.css > } > [else] > page.includeCSS { > file1 = fileadmin/styles/dim_home_00_FF.css > file2 = fileadmin/styles/tt_news_v2_styles_FF.css > file3 = fileadmin/styles/defaultstylesheet_FF.css > } > [end] > > > Stephen Bungert schrieb: >>> 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: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] Im Auftrag von bernd >> wilke >> Gesendet: Montag, 10. März 2008 14:54 >> An: [email protected] >> 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 > _______________________________________________ > TYPO3-english mailing list > [email protected] > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english > _______________________________________________ TYPO3-english mailing list [email protected] http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english _______________________________________________ TYPO3-english mailing list [email protected] http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
