[TYPO3] Wrapping last element in styles.content.get SOLVED

Jan Zýka zyka.jan at gmail.com
Mon Jan 29 15:44:20 CET 2007


So I found a solution how to "optionsplit" content elements. Credits go to
http://www.typo3wizard.com

Here is the solution, if someone find it usefull:

tt_content.stdWrap.outerWrap = |###SPLITTER###

subparts.LEFT_MESSAGE.1 {
  10 < styles.content.getLeft
  stdWrap.split {
    token = ###SPLITTER###
    cObjNum = |*||*| 1 || 2 || 3
    1.current = 1
    1.wrap = <div class="{$wrapString}">|</div>
    2.current = 1
    2.wrap = <div class="last{$wrapString}">|</div>
    3.current = 1
  }
}

note: I have no idea why should I left one empty element in the end (3) but
... it works in this way :))

Z


More information about the TYPO3-english mailing list