[TYPO3] Problem with pi_RTEcssText

Benoit Norrin tuxavery at hotmail.com
Sun Jan 7 16:10:00 CET 2007


Hello,

I created a new tt_content type which is resembling to text type and i wanna
to keep the same rendering between both.

My code :

function main($content,$conf)
{
$this->conf=$conf;
$this->pi_setPiVarDefaults();

$this->templateFile =
$this->cObj->fileResource($this->conf["templateFile"]);
if (!$templateFile)
{
  $templateFile = 'EXT:dl3_blocouvrant/template.html';
}

$template['total'] = $this->cObj->getSubpart($this->templateFile,
'###BLOC_OUVRANT###');
$markerArray['###HEADER###'] = $this->cObj->data['header'];
$markerArray['###TEXT###'] = $this->pi_RTEcssText(
$this->cObj->data['tx_dl3blocouvrant_text'] );

$content =
$this->cObj->substituteMarkerArrayCached($template['total'],$markerArray,
array(), array());
return $content;
}

function render_text($content)  {
if (t3lib_extMgm::isLoaded('css_styled_content')) {
  $content = $this->pi_RTEcssText( $content );
} else {
  $parseFunc =
$GLOBALS['TSFE']->tmpl->setup['tt_content.']['text.']['20.']['parseFunc.'];
  if (is_array($parseFunc)) $content = $this->cObj->parseFunc($content,
$parseFunc);
}

return $content;
}


I don't understand, whether I use parsefunc or pi_rtecsstext, it is the same
thing.
I don't know too much how the RTE works, but in TSconfig of the root page
many things are configured and I think that that acts on rendering. So,
according to what I see the rendering of text type is not linked to
parsefunc_RTE. Where it's placed that I can use the same one for my
extension ?

Sorry for my english.
Greetings
Benoit

_________________________________________________________________
Personnalisez votre Messenger avec Live.com 
http://www.windowslive.fr/livecom/



More information about the TYPO3-english mailing list