[TYPO3] Problem with TypoScript conditions and page.includeCSS

Tyler Kraft tyler.kraft at netefficiency.co.uk
Tue Mar 11 16:43:44 CET 2008


?!? It displays how many references ('ref' in filelist) that exist to 
that file!

Stephen Bungert wrote:
> Discovered the problem was my mistake.
> 
> fdm_ie7.css
> 
> should have been 
> 
> fdm_ie_7.css
> 
> Thank you all for trying to help me. Is there anyway that typo 3 can be made
> to display a message when a file doesn't exist rather not doing anything at
> all?
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: typo3-english-bounces at lists.netfielders.de
> [mailto:typo3-english-bounces at lists.netfielders.de] Im Auftrag von Othmar
> Voser
> Gesendet: Dienstag, 11. März 2008 09:20
> An: typo3-english at lists.netfielders.de
> 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: typo3-english-bounces at lists.netfielders.de
>> [mailto:typo3-english-bounces at lists.netfielders.de] Im Auftrag von Othmar
>> Voser
>> Gesendet: Montag, 10. März 2008 17:02
>> An: typo3-english at lists.netfielders.de
>> 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: 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
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
> _______________________________________________
> 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