[Typo3-dev] Typos content rendering functions

Ingmar Schlecht ingmars at REMOVETHISweb.de
Fri Aug 22 12:29:44 CEST 2003


Sacha Vorbeck wrote:
> Hi,
> 
> Ingmar Schlecht wrote:
> 
>> If you like to work with good old content(default), you could do it 
>> like that:
> 
> 
> thanks! I think this is the same as the render_text() function from 
> cssd.
Similar, but not the same.

In the file you posted the link to, you do:
<?php
$this->cObj->parseFunc($content, 
$this->conf["text."]["20."]["parseFunc."]);
?>
But as far as I see you don't declare $this->conf anywhere so it's 
empty. Try debug($this->conf).

Now what can you do?

1.) Easiest way is this:
use 
$GLOBALS["TSFE"]->tmpl->setup["tt_content."]["text."]["20."]["parseFunc."]
instead of $this->conf["text."]["20."]["parseFunc."]

2.) Other way would be:
$this->conf = $conf; // place this at the begining of your main() func.

and in your ext_typoscript_setup.txt do something like this:
plugin.tx_svnewslist_pi1.text < tt_content.text

Then your render_text() function should work.

- Ingmar





More information about the TYPO3-dev mailing list