[TYPO3-UG Muenster] Templavoila, Bug Report

Martin Bless m.bless at gmx.de
Mon Oct 12 12:44:59 CEST 2009


[Friedrich Gerken] wrote & schrieb:

>Das ist mir auch schon aufgefallen. Ich habe das immer so gemacht:
>
>Das kommt ins Setup:
>
># Conditional Comments
>page.headerData.20 = TEXT
>page.headerData.20.value (
><style type="text/css" media="screen, projection">
>/*<![CDATA[*/
>@import "fileadmin/templates/css/default.css";
></style>
><!--[if IE]>
>According to the conditional comment this is Internet Explorer<br />
><![endif]-->
><!--[if IE 5]>
>According to the conditional comment this is Internet Explorer 5<br />
><![endif]-->
><!--[if IE 5.0]>
>According to the conditional comment this is Internet Explorer 5.0<br />
><![endif]-->
><!--[if IE 5.5]>
>According to the conditional comment this is Internet Explorer 5.5<br />
><![endif]-->
><!--[if IE 6]>
>According to the conditional comment this is Internet Explorer 6<br />
><![endif]-->
><!--[if IE 7]>
>According to the conditional comment this is Internet Explorer 7<br />
><![endif]-->
><!--[if gte IE 5]>
>According to the conditional comment this is Internet Explorer 5 and up<br />
><![endif]-->
><!--[if lt IE 6]>
>According to the conditional comment this is Internet Explorer lower
>than 6<br />
><![endif]-->
><!--[if lte IE 5.5]>
>According to the conditional comment this is Internet Explorer lower
>or equal to 5.5<br />
><![endif]-->
><!--[if gt IE 6]>
>According to the conditional comment this is Internet Explorer greater
>than 6<br />
><![endif]-->
>)
>
>Noch Pfade zur CSS Datei eintragen und fertig!

(1)
 Klar, gehen tut das. Aber es ist ein Workaround für ein Missing
Feature in Templavoila. Die SVN-Version von Templavoila 1.4x hat
dieses Feature (und noch weitere) schönerweise bereits eingebaut. Nur
leider hat es noch den beschriebenen Fehler. Deshalb der Bugreport.

(2)
In deinem Code fehlt noch der Abschluss des CDATA-Bereichs. Siehe dazu
http://www.w3schools.com/xmL/xml_cdata.asp

Also:
<![CDATA[
...
]]>

Bzw. (aus dem Kopf):
/* <![CDATA[ */
...
/* ]]> */

cu, Martin

-- 
http://mbless.de


More information about the TYPO3-UG-Muenster mailing list