[TYPO3-english] Wrapping content elements in different ways
Peter Russ
peter.russ at 4many.net
Mon May 25 21:44:36 CEST 2009
--- Original Nachricht ---
Absender: Claudio Strizzolo
Datum: 25.05.2009 15:40:
> Hi all,
> I am trying to wrap content elements taken from the right column in
> different ways according to their position. In particular I need the last
> content element to be wrapped in a different way from the previous ones,
> i.e.:
>
> <div class="element">First content element</div>
> <div class="element">Second content element</div>
> (...)
> <div class="last_element">Last content element</div>
>
> I tried with the following TS code, but it does not work:
>
> tt_content.stdWrap.outerWrap = |###SPLITTER###
> temp.focus=COA
> temp.focus {
> 10 < styles.content.getRight
> stdWrap.split {
> token = ###SPLITTER###
> cObjNum = |*| 1 |*| 2
> 1.current = 1
> 1.wrap=<div class="element">|</div>
> 2.current = 1
> 2.wrap = <div class="last_element">|</div>
> }
> }
>
> Actually it looks like the content elements are not split at all: they are
> all embedded in an unique <div class="last_element"> block.
> Any hints?
> I beg your pardon in advance if this is a silly question, but I am really
> puzzled.
> Thanks in advance.
>
> Claudio
There are tons of examples available when you google for optionsplit.
Forget the splitte;-)
Peter.
--
Fiat lux! Docendo discimus.
_____________________________
uon GbR
http://www.uon.li
http://www.xing.com/profile/Peter_Russ
More information about the TYPO3-english
mailing list