[TYPO3] communication between TS objects in different FCE fields

JoH info at cybercraft.de
Fri Mar 3 03:13:48 CET 2006


>>     <TypoScript>
>>         10 = TEXT
>>         10.value= comments number:
>>         20 = USER_INT
>>         20.userFunc = user_count_comments_class->count
>>         20.pageid = 12
>>     </TypoScript>
>
>
> [...]
>
>> the problem is that '11.pageid' field's value should be set
>> dynamically. Ideally, it would fetch it somehow from the LINK field
>> of this FCE, which would be chosen by user.
>
> my mistake here, here goes corrected ver:
>

Try the TS function numRows instead of your counting PHP.

10 = TEXT
10.value= comments number:
20 = TEXT
20.numRows {
    table = yourCommentTableName
    select {
        pidInList.data = TSFE:id
    }
}

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