[TYPO3] Wrap each element in TV

Sune nospam_sune at talefod.dk
Tue Aug 1 15:08:11 CEST 2006


Hi again,

This did not solve my problem, because it seems that you cannot use
optionsplit on dataWrap.

What i actually need to output is:

<child_1>|</child_1>
<child_2>|</child_2>
<child_3>|</child_3>
<child_1>|</child_1>
<child_2>|</child_2>
<child_3>|</child_3>
...
<child_n>|</child_n>

Anyone?

/Sune

"Sune" <nospam_sune at talefod.dk> skrev i en meddelelse
news:mailman.1.1154436785.26761.typo3-english at lists.netfielders.de...
> Hi,
>
> Found the solution:
>
> 10.conf.tt_content.stdWrap.dataWrap = <child>|</child>
>
> /Sune
>
>
>
> "Sune" <nospam_sune at talefod.dk> skrev i en meddelelse
> news:mailman.1.1154435945.24944.typo3-english at lists.netfielders.de...
> > Hi
> >
> > I have the following in my TS for a FC:
> >
> >  10= RECORDS
> >  10.source.current=1
> >  10.tables = tt_content
> >  10.wrap = <parent>|</parent>
> >
> > This works perfectly! But now i want to wrap each element in  "<child>"
> and
> > "</child>", so i get
> >
> > <parent>
> >   <child>[normal rendering of tt_content]</child>
> >   <child>[normal rendering of tt_content]</child>
> > ...
> >   <child>[normal rendering of tt_content]</child>
> > </parent>
> >
> > But i cant get it to work. I have tried:
> >
> >  10= RECORDS
> >  10.source.current=1
> >  10.tables = tt_content
> > 10.conf.tt_content = COA
> > 10.conf.tt_content.wrap = <child>|</child>
> >
> > but then the normal rendering dosent happen and i just get
> > <child></child>
> > <child></child>
> > ...
> > <child></child>
> >
> > Please help :)
> >
> > BestRegards
> > Sune
> >
> >
>
>





More information about the TYPO3-english mailing list