[TYPO3] Different wrap for last content in content area
Tapio Markula
tapio.markula at xetpoint.fi
Wed Oct 10 18:41:21 CEST 2007
JoH kirjoitti:
>>> Øyvind Frøland - UniWeb AS kirjoitti:
>>>> Dear Tapio,
>>>>
>>>> Try the following oneliner:
>>>>
>>>> tt_content.text.20.dataWrap = <div class="first">|</div> |*| <div
>>>> class="middle">|</div> |*| <div class="last">|</div>
>>> seems not to work - this either
>> is there some splitter (needs to work with Typo3 3.8.1)
>> and how to apply here
>>
>> Tried this
>>
>>
>> tt_content.text.20.dataWrap = <div class="basicText">|</div>
>>
>> /*
>> tt_content.text.20.dataWrap.split {
>>
>> not succeeded
>
> of course not, since there is nothing like
>
> dataWrap.split
>
> and you didn't create the ###SPLITTER### for your output.
>
> I invented the snippet you are trying to use long time ago and reactivated
> it for the cookbook, so I definitely know that it works, but to get it
> running you need
> a) a stdWrap (or other) function to insert the ###SPLITTER### to the content
> you want to split
> b) the stdWrap function split used in a place where it belongs to.
>
> HTH
>
> Joey
>
>
Tried
temp.customRender = CASE
temp.customRender {
key.field = colPos
default < tt_content
0 < tt_content
1 < tt_content
4 < tt_content
0.text.stdWrap.dataWrap = <div class="basicText">|<br class="none"
/></div>
/*
0.text.stdWrap.split {
token = ###SPLITTER###
cObjNum = 1||2|*||*|3||4
1.current = 1
1.wrap = <div class="basicText">|<br class="none" /></div>
2.current = 1
2.wrap = <div class="basicText">|<br class="none" /></div>
3.current = 1
3.wrap = <div class="basicTextLast">|<br class="none" /></div>
4.current = 1
}
*/
1.text.stdWrap.dataWrap = <div class="basicText">|<br class="none"
/></div>
}
[PIDinRootline =1570,1572,1574]
tt_content >
tt_content < temp.customRender
[end]
didn't get desired result
More information about the TYPO3-english
mailing list