[TYPO3-english] Re : How to wrap several items of a CONTENT cObject?

Ernesto Domato edomat at gmail.com
Thu Aug 25 23:33:07 CEST 2011


On Thu, Aug 25, 2011 at 18:20, joel zimmerli <baden32 at yahoo.fr> wrote:
> Hi Ernesto,
>
> What's about the following code:
>
> lib.test >
> lib.test = COA
> lib.test {
>    10 = CONTENT
>    10 {
>        table = tt_content
>        select.pidInList = 10,11,12
>    }
>    stdWrap.wrap = <div class="something">|</div>
> }
>

No. That wraps all the items with the <div> and not each of them. So,
your code do:

<div>
item 10
item 11
item 12
</div>

and I want:

<div>item 10</div>
<div>item 11</div>
<div>item 12</div>

following Jigal suggestion what I did finally was:

lib.test = CONTENT
lib.test.table = tt_content
lib.test.select.pidInList = 10,11,12
lib.test.renderObj = TEXT
lib.test.renderObj {
  field = bodytext
  wrap = <div class="page">|</div>
}

and it worked as I expected.

Thanks for all.
Ernesto


More information about the TYPO3-english mailing list