[TYPO3-german] Erweiterung eines Flexible Content Objekts mit Typoscript

olli1705 oliver.macholz at raysono.com
Tue Sep 19 11:31:05 CEST 2006


Hallo Zusammen,

ich hab ein kleines Problem mit der Erweiterung eines Flexible Content
Objekts mit Typoscript. Kann es sein, daß das nicht bei jedem Objekttypen
geht? In meinem Fall ist der Typ "Text Area for Bodytext".
Ich möchte damit ein eigenes Bullet Listen Template erzeugen. Zunächst mal
ganz einfach:

<ul>
<li>...</li>
</ul>

Das XML für das Objekt sieht folgendermaßen aus:

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
	<ROOT type="array">
		<tx_templavoila type="array">
			<title>ROOT</title>
			<description>Select the HTML element on the page which you want to be the
overall container element for the template.</description>
		</tx_templavoila>
		<type>array</type>
		<el type="array">
			<field_fce_bullet_list type="array">
				<tx_templavoila type="array">
					<title></title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>text</eType>
					<proc type="array">
                      <hsc type="integer">0</hsc>
                    </proc> 
				</tx_templavoila>
				<TCEforms type="array">
					<config type="array">
						<type>text</type>
						<cols>48</cols>
						<rows>5</rows>
					</config>
					<label></label>
				</TCEforms>
			</field_fce_bullet_list>
		</el>
	</ROOT>
</T3DataStructure>

Dieses XML wird durch ein Local Processing XML überschrieben das wie folgt
konfiguriert ist:

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
	<ROOT type="array">
		<el>
			<field_fce_bullet_list type="array">
				<tx_templavoila type="array">
					<typoscript>
					<![cdata[
					10 = TEXT
					10.current = 1
					10.split {
						token.char = 10
						wrap = <li>|</li>}
						10.wrap = <ul>|</ul>	
					]]>
					</typoscript>
				</tx_templavoila>
			</field_fce_bullet_list>
		</el>
	</ROOT>
</T3DataStructure>

Er soll um jede Zeile des Textareas ein <li>|</li> wrappen und um die
gesamte Liste ein <ul>|</ul>. Ignoriert er aber total. Ich bekomme im
frontend lediglich den Inhalt der Textarea ohne irgendwelche Tags
ausgegeben.

Was mache ich falsch?

(Benutze Typo3 4.01 und die neuste Version von TV)

Danke und Gruß,

Olli


-- 
View this message in context: http://www.nabble.com/Erweiterung-eines-Flexible-Content-Objekts-mit-Typoscript-tf2297967.html#a6384738
Sent from the TYPO3 German mailing list archive at Nabble.com.




More information about the TYPO3-german mailing list