[TYPO3] wrap a COA using 'optionSplit'? - SOLVED

Tapio Markula tapio.markula at dnainternet.net
Thu Apr 20 09:46:50 CEST 2006


Tapio Markula wrote:
> 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.

I must redefine
    #1 < .default.20
    #1.stdWrap.if >

        1=COA
        1{
              10 = COA
              10 {
                  10 = TEXT
                  10.value = |
                  }
            stdWrap.dataWrap = <div class="csc-header 
csc-header-n{cObj:parentRecordNumber}">|</div>
        }

The issue, which I don't understand is that I must define empty '10'
- otherwise datawrap becomes *before* the header and doesn't wrap the 
header.



More information about the TYPO3-english mailing list