[TYPO3] wrap a COA using 'optionSplit'?
Tapio Markula
tapio.markula at dnainternet.net
Thu Apr 20 09:01:09 CEST 2006
JoH wrote:
>>> 20 = TEXT
>>> 20 {
>>> value = |
>>> dataWrap = <div class="csc-header
>>>csc-header-n{cObj:parentRecordNumber}">|</div>
>>> stdWrap.if {
>>> value = 1
>>> equals.data = cObj:parentRecordNumber
>>> negate = 1
>>> }
>>> }
>>
>>object 20 creates however an additional div without termination.
>>That is the actual error in the code. Thank's anyway.
>
>
> remove the stdWrap before if.
>
> 20 = TEXT
> 20 {
> value = |
> dataWrap = <div class="csc-header
> csc-header-n{cObj:parentRecordNumber}">|</div>
> if {
> value = 1
> equals.data = cObj:parentRecordNumber
> negate = 1
> }
> }
>
> Should be working.
Doesn't render dataWrap for other headers but in this case that is not
needed.
> BTW: You should definitely learn how to position elements with CSS to avoid
> this useless table stuff.
I know. I don't rely the behavior of 'float'. Might cause unexpected
result. And I should set height for the DIV container, which doesn't
work because I can't know it. Floating element would not work in all cases.
More information about the TYPO3-english
mailing list