[TYPO3-english] Wrapping content elements in different ways

Walrick lists at globalhealingcircle.net
Mon May 25 17:03:50 CEST 2009


Hello again,

Just some other ideas: have you tried:

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

or

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

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