[TYPO3] multiple CONTENT cobject ?

JoH info at cybercraft.de
Fri Mar 10 15:36:59 CET 2006


JoH wrote:
>> I have this ts for listing content elemements:
>> but only the first element is displayedn the second is not.
>> I can't see any mistake in tthis code.
>> If i remove the seconf renderObj it does work. adding a second seems
>> to brake the code.
>>
>> any solution for this?
>
> Yes - fill in the missing closing bracket ...

And since there seems to be now difference between 10 and 20 except the uid
you could do it like this:

temp.prodlist3 = COA
temp.prodlist3 {
    10 = CONTENT
    10.wrap = <div class="prodlist"><div class="prodlist-top"> </div>| <hr
class="clear" /><div class="prodlistfooter"></div></div>
    10 {
        table = tt_content
        select {
            pidInList = 5
            uidInList = 13,14
        }
        renderObj = COA
        renderObj {
            10 = TEXT
            10 {
                field = header
                wrap = <h3> | </h3>
            }
            20 = TEXT
            20 {
                field = image_link
                wrap = <div class="prodimg"><a href="index.php?id=|">
            }
            21 = TEXT
            21 {
                field = image
                wrap = <img src="uploads/pics/|" alt="produkten"
/></a></div>
            }
            30 = TEXT
            30 {
                field = bodytext
                wrap = <div class="prod-content"><p> | </p></div>
            }
        }
    }
}

And skip the 20=CONTENT part.

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de





More information about the TYPO3-english mailing list