[TYPO3-dev] Rendering of cObj->cObjGetSingle && cObj->RECORDS

JoH asenau info at cybercraft.de
Thu Aug 9 11:24:55 CEST 2007


>> Put debug() statements everywhere inside RECORD and see what it does.
>> Easiest and fastest way to you I think.
>
> Ok very strange:
> it works fine if I *hardcode* my $conf *inside* function RECORDS() but
> only if I use the "insert record" function.
>
> no output of plugins if I use the cObj->records with the same RECORDS
> function.

Of corse not since, you haven't got the the tt_content definition available
while doing that.
Usually the default setup of tt_content is used when rendering elements with
the RECORD element. You can override that using the conf part of RECORDS.

If there is no tt_content setup available the output will be less than
expected and I guess this is what you are currently experiencing.

Try this one

$TS['conf'] = 'RECORDS';
$TS['conf.']['tables']='tt_content';
$TS['conf.']['source'] = '151,99,113,199,163,208';
$TS['conf.']['dontCheckPid'] = 1;
$TS['conf.']['conf.']['tt_content'] = TEXT;
$TS['conf.']['conf.']['tt_content.']['field'] = bodytext;
$content = $this->cObj->cObjGetSingle($TS['conf'],$TS['conf.']);

just to check if the RECORDS can be rendered at all.

HTH

Joey

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






More information about the TYPO3-dev mailing list