[Typo3-dev] rendering content by id

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Fri Jun 17 13:58:28 CEST 2005


Robert Fink schrieb:
> Hi!
> 
> 
>>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 this is already a huge part pf what index_ts.php does.
> And you (at least I) definitely need FE-User handling, because I need to 
> generate only the content of pages that the current user has access to.
> 
> Ok, I will go through index_ts.php, look what it does and try to initialize 
> my own $TSFE2-object with a new ID-parameter. Let's see how far i can get...

Perhaps the easist way is to use CURL. You can probably fake a user 
connection by providing a session cookie (you can use the one for the 
current session).

Masi




More information about the TYPO3-dev mailing list