[TYPO3-dev] Get current record data...

Francois Suter fsu-lists at cobweb.ch
Wed Apr 21 13:19:07 CEST 2010


Hi Stig,

> I know it's possible to get the current record data like this:
> $GLOBALS['TSFE']->sys_page->getRawRecord('tt_content', $someuid);
> But this results in a database call.
>
> I was wondering if the current tt_content record data is stored
> somewhere in an object?
> I tried to look around in $GLOBALS['TSFE'], but only found the page record.

If you're inside the context of a plugin (as I suppose you are), the 
record is stored in $this->cObj->data. If you're working in another 
context, please provide more information.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch




More information about the TYPO3-dev mailing list