[TYPO3] wrap a COA using 'optionSplit'?

JoH info at cybercraft.de
Wed Apr 19 23:07:23 CEST 2006


>>             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.

BTW: You should definitely learn how to position elements with CSS to avoid 
this useless table stuff.

Joey





More information about the TYPO3-english mailing list