[TYPO3-templavoila] Wrapping input field
Chris
chris at oblady.com
Wed Oct 29 14:51:33 CET 2008
Hi,
try just 'required=1'
it should break the 'wrap'
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/5/1/
Chris
Redvald Hjulstad a écrit :
> 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