[Typo3-dev] rendering content by id
Martin Kutschker
martin.kutschker at no5pam.blackbox.net
Thu Jun 16 15:44:58 CEST 2005
"Martin Kutschker" <martin.kutschker at no5pam.blackbox.net> schrieb im
Newsbeitrag news:mailman.1.1118928422.8256.typo3-dev at lists.netfielders.de...
>
> "Kraft Bernhard" <kraftb at gmx.net> schrieb im Newsbeitrag
> news:mailman.1.1118925942.2665.typo3-dev at lists.netfielders.de...
>> Theres also a mistake with this line from my first mail that's why I
>> wrote the second one:
>> cObjGetSingle can't be fed with a "PAGE" cObject ...
>>
>> You have to use:
>> $pageContent = $GLOBALS['TSFE']->cObj->cObjGet($this->conf['page.']);
>
> Does this work at all? I have just had a look at ts_index.php which does a
> lot more. I don't think you have to do everything, but still it makes me
> wonder if a page can be get by a simple rendering of a page cObject.
If we ignore FE and BE sessions I have this code.
$TSFE->TCAloaded; // TCA has already been loaded by the "real" TSFE
$TSFE->clear_preview();
$TSFE->getFromCache(); // can perhaps be omitted if you want no_cache=1
anyway
$TSFE->getConfigArray();
$TSFE->settingLanguage();
$TSFE->settingLocale(); // can be replaced by $TSFE->localeCharset =
$temp_TSFE->localeCharse if locale is the same as the current page
$TSFE->setUrlIdToken();
And I haven't done any real content generation by now...
Masi
More information about the TYPO3-dev
mailing list