[TYPO3-dev] Make Extension-$content output by tt_content record and UID

Popy popy.dev at gmail.com
Wed May 16 07:26:33 CEST 2007


$rec = $this->pi_getRecord($table,$uid,$checkPage=0);

$cObj = &t3lib_div::makeInstance('tslib_cObj');
$cObj->start($rec, $table);

$content = $cObj->cObjGetSingle('<' . $table, array());

2007/5/16, Markus Giesen <mfgiesen at gmail.com>:
>
> Hey Steffen,
> thanks, now I get an array with the data from this record,
> but what I want is, that this records is shown 1to1 like
> an normal content-block e.g. an image with text.
>
> Can you help me with this, or is there no hint?
>
> thanks,
> markus
>
> Steffen Kamper schrieb:
> > Hi again :-)
> > $rec = $this->pi_getRecord($table,$uid,$checkPage=0);
> >
> > does the job.
> >
> > vg  Steffen
> >
> > "Markus Giesen" <mfgiesen at gmail.com> schrieb im Newsbeitrag
> > news:mailman.1.1179249267.23382.typo3-dev at lists.netfielders.de...
> >> Hi all,
> >>
> >> how is this possible:
> >>
> >> I have the UID from my tt_content record.
> >>
> >> Now I want to tell my Extension, that the returned content
> >> ist simply the recordset from my tt_content identified by the UID
> >>
> >> Do you know what I mean?
> >> $content = $this->getContentFromTableById(1234);
> >>
> >> Just as if it would be a normal content object.
> >> Does anybody know how to manage that?
> >>
> >> Thank you,
> >> Markus
> >
> >
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>



-- 
Popy

Vulnerant omnes, ultima necat.

http://popy.sytes.net




More information about the TYPO3-dev mailing list