[TYPO3-english] Wrapping content elements in different ways
Walrick
lists at globalhealingcircle.net
Mon May 25 16:34:35 CEST 2009
Hello Claudio,
I haven't worked with optionSplit myself yet, but I think you're making
things to difficult. To wrap individual content elements you need
"renderObject".
I think something like this might work:
10 < styles.content.get
10.renderObject.stdWrap.outerWrap = <div class="element">|</div> |*|<div
class="element">|</div> |*| <div class="last_element">|</div>
Greetings,
Walrick
Claudio Strizzolo wrote:
> 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
--
webmaster Global Healing Circle
www.globalhealingcircle.net
More information about the TYPO3-english
mailing list