[TYPO3-dev] Manually rendering Content elements in BE

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Mon May 7 10:41:28 CEST 2007


Am Mon, 07 May 2007 09:34:32 +0200 schrieb Jens Mittag:

> How do you render given content-elements? I tried it with
> 
>         $conf = array();
>         $conf['table'] = 'tt_content';
>         $conf['select.']['pidInList'] = $pageToRender;
>         $cObj = t3lib_div::makeInstance('tslib_cObj');
>         $content = $cObj->CONTENT($conf);
> 
> but it doesn't work. I took this from css_styled_content and its
> "style.content.get" setup.... At the moment I'm thinking of fetching the
> page itself through a HTTP request and extracting the content elements
> out of the result, but thats dirty too if you ask me.
> 
> Gruß Jens

Hi Jens,

just speculation, but $cObj may depend on environment variables set by the
page object or similar. In older posting within this list, you will find
examples how you can instanciate a whole FE page within the BE. Needs a
little searching. If you read this list with a newsreader you can search
the whole history of topics.

Regards

Elmar




More information about the TYPO3-dev mailing list