TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] Problem with TypoScript conditions and page.includeCSS

This is a discussion on [TYPO3] Problem with TypoScript conditions and page.includeCSS within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Here is the TypoScript I'm using to load various stylesheets: ### CSS Includes ### ### ------------ ## [global] page.includeCSS { file1 = fileadmin/templates/css/...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 10.03.2008, 13:14
Stephen Bungert
Gast
 
Beiträge: n/a
Standard [TYPO3] Problem with TypoScript conditions and page.includeCSS

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]

[browser = ie]
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] {

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?

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 10.03.2008, 14:54
bernd wilke
Gast
 
Beiträge: n/a
Standard 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 (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 10.03.2008, 15:07
Stephen Bungert
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Problem with TypoScript conditions and page.includeCSS

> 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 (DOT) netfielders.de
[mailto:typo3-english-bounces (AT) lists (DOT) netfielders.de] Im Auftrag von bernd
wilke
Gesendet: Montag, 10. März 2008 14:54
An: typo3-english (AT) lists (DOT) 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 (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 10.03.2008, 17:02
Othmar Voser
Gast
 
Beiträge: n/a
Standard 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 (DOT) netfielders.de
> [mailto:typo3-english-bounces (AT) lists (DOT) netfielders.de] Im Auftrag von bernd
> wilke
> Gesendet: Montag, 10. März 2008 14:54
> An: typo3-english (AT) lists (DOT) 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 (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 10.03.2008, 17:22
Stephen Bungert
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Problem with TypoScript conditions and page.includeCSS

I replace mine with something more akin to yours:

### CSS Includes ###
### ------------ ###

[browser = msie]
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
file4 = fileadmin/templates/css/fdm_ie7.css
file4.media = screen
}
[else]
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]

But it still does not work. When I look at the source in IE I don't see this
css in the head
fdm_ie7.css. What could I be doing wrong?

Here is the whole basis template where the includeCSS parts are:

### PAGE ###
### ---- ###

page = PAGE
page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate

# Declare a page header text object
page.headerData.10 = TEXT

# Use page subtitle field first; otherwise use page title field
page.headerData.10.field = subtitle // title

# Wrap the field with the following
page.headerData.10.noTrimWrap = |<title>FDM: |</title>|

page.bodyTag >
page.bodyTagCObject = HTML
page.bodyTagCObject.value.field = alias//uid
page.bodyTagCObject.value.wrap = <body id="id|">



### CSS Includes ###
### ------------ ###

[browser = msie]
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
file4 = fileadmin/templates/css/fdm_ie7.css
file4.media = screen
}
[else]
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]

It is the last of the basis templates ( I have 3). Therefore the css ist he
last part oft he template typoscript. Does this matter?


_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 10.03.2008, 17:31
Stephen Bungert
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Problem with TypoScript conditions and page.includeCSS

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 (DOT) netfielders.de
[mailto:typo3-english-bounces (AT) lists (DOT) netfielders.de] Im Auftrag von Othmar
Voser
Gesendet: Montag, 10. März 2008 17:02
An: typo3-english (AT) lists (DOT) 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 (DOT) netfielders.de
> [mailto:typo3-english-bounces (AT) lists (DOT) netfielders.de] Im Auftrag von bernd
> wilke
> Gesendet: Montag, 10. März 2008 14:54
> An: typo3-english (AT) lists (DOT) 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 (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #7  
Alt 10.03.2008, 17:37
Christopher Torgalson
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Problem with TypoScript conditions and page.includeCSS

Hi,

On Mon, Mar 10, 2008 at 5:22 PM, Stephen Bungert
<s.bungert (AT) metrinomics (DOT) de> wrote:
> I replace mine with something more akin to yours:
>
> ### CSS Includes ###
> ### ------------ ###
>
> [browser = msie]
> 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
> file4 = fileadmin/templates/css/fdm_ie7.css
> file4.media = screen
> }
> [else]
> 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]
>
> But it still does not work. When I look at the source in IE I don't see this
> css in the head
> fdm_ie7.css. What could I be doing wrong?
>
> Here is the whole basis template where the includeCSS parts are:
>
> ### PAGE ###
> ### ---- ###
>
> page = PAGE
> page.typeNum = 0
>
> # Copying the content from TEMPLATE for <body>-section:
> page.10 < temp.mainTemplate
>
> # Declare a page header text object
> page.headerData.10 = TEXT
>
> # Use page subtitle field first; otherwise use page title field
> page.headerData.10.field = subtitle // title
>
> # Wrap the field with the following
> page.headerData.10.noTrimWrap = |<title>FDM: |</title>|
>
> page.bodyTag >
> page.bodyTagCObject = HTML
> page.bodyTagCObject.value.field = alias//uid
> page.bodyTagCObject.value.wrap = <body id="id|">
>
>
>
> ### CSS Includes ###
> ### ------------ ###
>
> [browser = msie]
> 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
> file4 = fileadmin/templates/css/fdm_ie7.css
> file4.media = screen
> }
> [else]
> 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]
>
> It is the last of the basis templates ( I have 3). Therefore the css ist he
> last part oft he template typoscript. Does this matter?



I'm not so sure about how/whether this [else] works with conditions.
Try it like this instead (the general pattern in TS is 'set the
defaults, and then override for specific cases

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
}
[browser = msie]
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
file4 = fileadmin/templates/css/fdm_ie7.css
file4.media = screen
}
[global]

Incidentally, this task is probably much more easily accomplished with
IE conditional comments [1], since a) if you develop for a
standards-aware browser, the IE-only stylesheets are usually very
small, and b) since the decision whether to use them is shifted from
the webserver (this is what you're doing now) to the browser itself.

--
Christopher Torgalson
http://www.typo3apprentice.com/

[1] http://www.quirksmode.org/css/condcom.html
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #8  
Alt 11.03.2008, 09:19
Othmar Voser
Gast
 
Beiträge: n/a
Standard 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 (DOT) netfielders.de
> [mailto:typo3-english-bounces (AT) lists (DOT) netfielders.de] Im Auftrag von Othmar
> Voser
> Gesendet: Montag, 10. März 2008 17:02
> An: typo3-english (AT) lists (DOT) 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 (DOT) netfielders.de
>> [mailto:typo3-english-bounces (AT) lists (DOT) netfielders.de] Im Auftrag von bernd
>> wilke
>> Gesendet: Montag, 10. März 2008 14:54
>> An: typo3-english (AT) lists (DOT) 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 (DOT) netfielders.de
> http://lists.netfielders.de/cgi-bin/.../typo3-english
>

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #9  
Alt 11.03.2008, 10:13
Stephen Bungert
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Problem with TypoScript conditions and page.includeCSS

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 (DOT) netfielders.de
[mailto:typo3-english-bounces (AT) lists (DOT) netfielders.de] Im Auftrag von Othmar
Voser
Gesendet: Dienstag, 11. März 2008 09:20
An: typo3-english (AT) lists (DOT) 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 (DOT) netfielders.de
> [mailto:typo3-english-bounces (AT) lists (DOT) netfielders.de] Im Auftrag von Othmar
> Voser
> Gesendet: Montag, 10. März 2008 17:02
> An: typo3-english (AT) lists (DOT) 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 (DOT) netfielders.de
>> [mailto:typo3-english-bounces (AT) lists (DOT) netfielders.de] Im Auftrag von bernd
>> wilke
>> Gesendet: Montag, 10. März 2008 14:54
>> An: typo3-english (AT) lists (DOT) 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 (DOT) netfielders.de
> http://lists.netfielders.de/cgi-bin/.../typo3-english
>

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #10  
Alt 11.03.2008, 10:37
Stephen Bungert
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Problem with TypoScript conditions and page.includeCSS

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: typo3-english-bounces (AT) lists (DOT) netfielders.de
[mailto:typo3-english-bounces (AT) lists (DOT) netfielders.de] Im Auftrag von Othmar
Voser
Gesendet: Dienstag, 11. März 2008 09:20
An: typo3-english (AT) lists (DOT) 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 (DOT) netfielders.de
> [mailto:typo3-english-bounces (AT) lists (DOT) netfielders.de] Im Auftrag von Othmar
> Voser
> Gesendet: Montag, 10. März 2008 17:02
> An: typo3-english (AT) lists (DOT) 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 (DOT) netfielders.de
>> [mailto:typo3-english-bounces (AT) lists (DOT) netfielders.de] Im Auftrag von bernd
>> wilke
>> Gesendet: Montag, 10. März 2008 14:54
>> An: typo3-english (AT) lists (DOT) 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 (DOT) netfielders.de
> http://lists.netfielders.de/cgi-bin/.../typo3-english
>

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten: