[TYPO3] multiple CONTENT cobject ?

Dmitry Dulepov typo3 at fm-world.ru
Fri Mar 10 15:50:21 CET 2006


Hi!

Rob De Vries wrote:
> I have this ts for listing content elemements:

If I were you, I would do something like:

temp.prodlist3 = CONTENT
temp.prodlist3 {
  table = tt_content
  select.where = uid=14 OR uid=15
  renderObj = COA
  renderObj {
    wrap (
      <div class="prodlist"><div class="prodlist-top"> </div>
      |<hr class="clear" /><div class="prodlistfooter"></div></div>
    )
    10 = TEXT
    10.field = header
    10.wrap = <h3> | </h3>
    20 = IMAGE
    20 {
      altText = Produkten
      file.field = image
      stdWrap.typolink {
        parameter.field = image_link
        wrap = <div class="prodimg">|</div>
      }
    }
    30 = TEXT
    30 {
      field = bodytext
      wrap = <div class="prod-content"><p class="bodytext"> | </p></div>
    }
  }
}

Probably it does not work from the beginning but it is a good start
because avoids using links and image tags directly.

Dmitry.
-- 
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)



More information about the TYPO3-english mailing list