[TYPO3-dev] Manually rendering Content elements in BE
Steffen Kamper
steffen at dislabs.de
Mon May 7 15:10:29 CEST 2007
"Elmar Hinz" <elmar.DOT.hinz at team.MINUS.red.DOT.net> schrieb im Newsbeitrag
news:mailman.1.1178527288.10295.typo3-dev at lists.netfielders.de...
> 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
Hi,
this is not an easy task. I also needed a way to do this, and i searched all
the newsgroups for an solution. The prob is to filter out the working
approaches from the "not working"
In my case I had the problem, that parts of the TSFE-Objects are missed, so
i got some results like normal CE's but no results with Extensions. e.g.
If anyone has a working solution, it would make sense to offer an Extension,
that offers a TSFE-Object for BE, so anyone could use with minimum of
initialization.
vg Steffen
More information about the TYPO3-dev
mailing list