[TYPO3-dev] Manually rendering Content elements in BE

Jens Mittag jens.mittag at prime23.de
Mon May 7 16:38:12 CEST 2007


Am Montag, den 07.05.2007, 15:10 +0200 schrieb Steffen Kamper:
> 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 

Then I will start putting things together and show you what I have up to
now. Maybe we manage to get it working with joined forces. ;)

Attached I have a single function that prepares the complete FE system
for a given pid and returns the output as a string. It works forme if I
change the function t3lib_tstemplate::fileContent($fname) to the following

function fileContent($fName) { 	
    $incFile = $this->getFileName($fName);
    if ($incFile){
        return @file_get_contents($this->getFileName_backPath.$incFile);
    } 
} 

What I added was the prefix $this->getFileName_backPath in order to get
correct file urls...

This way normal content-elements work fine, fe-plugins do not...
haven't figured yet why.

Do you know which tslib_content function I have to call if want to
render a single content-element only? That would be necessary to render
hidden records also...

Gruß Jens



> 
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev


More information about the TYPO3-dev mailing list