[TYPO3-english] Wrapping content elements in different ways

Claudio Strizzolo claudio.strizzolo at ts.nogarb.ageinfn.it
Tue May 26 09:21:04 CEST 2009


Hi Joey
thank you for the links you suggested:

> http://www.mail-archive.com/typo3-english@lists.netfielders.de/
msg01994.html
> http://www.iliska.de/mytypo3/typo3tips/optionsplit-question.html
> http://www.typo3-jack.net/typo3-german-lists-netfielders-de/6516-typo3-
german-optionsplit-wrap-text.html

I tried by adapting some examples from those pages, but haven't find the 
definitive solution yet. My last attempt was as follows:

temp.focus=COA
temp.focus {
  10 < styles.content.getRight
  10 {
        renderObj = COA
        renderObj {
            wrap = |###SPLITTER###
        }
    }

  stdWrap.split {
    token = ###SPLITTER###
    cObjNum = 1|*||*|2||3
    1.current = 1
    1.wrap=<div class="element">|</div>
    2.current = 1
    2.wrap = <div class="last_element">|</div>
    3.current = 1
  }
}

Now I get the blocks wrapped as expected, but they are empty:

<div class="element"></div>
<div class="element"></div>
(...)
<div class="last_element"></div>

I am probably doing a mess on the "10" object, trying to get content 
elements from a column and wrap them through renderObj.
I would not like to get the contents through a CONTENT type object as one 
of your links suggests, because the content elements on the right column 
are of very different types (text blocks, tt_news and more), so the 
simplest solution is

  10 < styles.content.getRight

Handling them through CONTENT would be rather hard.
Any hints?
Thanks again

Claudio


More information about the TYPO3-english mailing list