[TYPO3-UG Muenchen] Das Gelernte umgesetzt und ...

Thomas Biller thomas.biller at target-e.de
Wed Aug 23 15:35:56 CEST 2006


Danke für den Tip, wusste das nicht.
Ich lagere meine Bedingungen in die Constants aus, um Mehrfachaufrufe zu 
vermeiden:

SETUP:

config {
	doctype = xhtml_strict
	doctypeSwitch = {$isIE}
	xhtml_cleaning = all
}


CONSTANTS:

[browser = msie]
   isIE = 1
[else]
   isIE = 0
[end]

Das funktioniert dann garantiert. Das mit den nicht funktionierenden 
Conditions in offenen Klammern wusste ich nicht.
Siehst Du, schon wieder was gelernt.

Gruß,
Thomas


Matthias Stuebner schrieb:
> On Wed, 23 Aug 2006 13:52:33 +0200, Thomas Biller wrote:
> 
>> config {
>> 	doctype = xhtml_trans
>> 	xhtml_cleaning = all
>> 	[browser = msie]
>> 		doctypeSwitch = 1
>> 	[global]
>> }
>>
>> So müsste es klappen.
> 
> Garantiert nicht, da Du eine Condition innerhalb der offenen Klammer von
> Config hast, was nicht erlaubt ist.
> 
> Dann doch eher:
> 
> config {
> 	doctype = xhtml_trans
> 	xhtml_cleaning = all
> }
> 
> [browser = msie]
>   doctypeSwitch = 1
> [global]
> 



More information about the TYPO3-muenchen mailing list