[TYPO3-templavoila] how to wrap each element of a content element

Peter Klein peter at umloud.dk
Mon Dec 8 16:40:50 CET 2008


Hi Michael.

Create a "conf" part for your "RECORDS" object. Using that, you can
add individual wrapping for each CE.

http://typo3.org/documentation/document-library/references/doc_core_tsref/4.2.0/view/1/8/#id4251248

--
Peter Klein / Umloud Untd


On Mon, 01 Dec 2008 18:26:43 +0100, Michael Kellner
<mik at kleinerChemiker.net> wrote:

>			<field_box_right type="array">
>				<tx_templavoila type="array">
>					<title>rechte Box</title>
>					<description>Mappe das Element
>auf das HTML element, das die rechte Box enthält.</description>
>					<sample_data type="array">
>						<numdex
>index="0">[Rechte Box]</numdex>
>					</sample_data>
>					<eType>ce</eType>
>					<TypoScript><![CDATA[
>	10= RECORDS
>	10.source.current=1
>	10.tables = tt_content
>	10.stdWrap.required = 1
>	10.stdWrap.wrap = <!--TYPO3SEARCH_begin--><div id="box_right">
>| </div><!--TYPO3SEARCH_end--> 
>                    ]]></TypoScript>
>					<oldStyleColumnNumber
>type="integer">1</oldStyleColumnNumber>
>				</tx_templavoila>
>				<TCEforms type="array">
>					<config type="array">
>						<type>group</type>
> <internal_type>db</internal_type>
> <allowed>tt_content</allowed>
>						<size>5</size>
> <maxitems>200</maxitems>
>						<minitems>0</minitems>
>						<multiple>1</multiple>
> <show_thumbs>1</show_thumbs>
>					</config>
>					<label>rechte Box</label>
>				</TCEforms>
>			</field_box_right>
>
>
>This is the code of a content element of my page. If I have severel
>elements in this content element, they are wraped all together. But I
>would like to wrap each element with the <div>. How could I do that?
>
>tia
>
>MIK


More information about the TYPO3-project-templavoila mailing list