[TYPO3-templavoila] Wrapping input field

Redvald Hjulstad redvald at hjulstad.no
Mon Oct 13 19:59:50 CEST 2008


Hi

I have a input field that I would like to wrap in a p tag if there is 
anthing in it. My code is like this:

<field_undertekst type="array">
<tx_templavoila type="array">
<title>Undertekst</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>


<TypoScript>
<![CDATA[
10 = TEXT
10.current = 1
10.fieldRequired = field_undertekst
10.wrap = <p class = "bildeundertekst">|</p>
]]>
</TypoScript>

<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>

<label>Undertekst</label>
</TCEforms>

</field_undertekst>



The problem is that the <p class = "bildeundertekst">|</p> is outputted 
as text on the HTML page, and not as HTML in the source.

Anyone?


/red



More information about the TYPO3-project-templavoila mailing list