[Typo3-dev] RTE / Links / simulate static

Dimitrij Denissenko dimdenis at gmx.at
Tue Nov 11 14:26:21 CET 2003


Hi!

I have following problem:

I've created an Extension (content element) which displays content form
tt_bodytext.
When I use RTE to create a Link in 'bodytext', the output looks like:

<a href="http://localhost/27.1.html?id=70">

and not
<a href="http://localhost/70.1.html">

as it should be (and it also is, if I insert my content in a Standard-Text
content element).
Why?

My "class.extension_pi1" is the following:
----------
  ...
  $this->templateCode =
$this->cObj->fileResource($this->conf["templateFile"]);
  $template = $this->cObj->getSubpart($this->templateCode, ###TEMP###);

  $subpartArray = array();
  $subpartArray["###TITLE###"]  = $this->cObj->data['header'];
  $subpartArray["###CONTENT###"] = $this->cObj->data['bodytext'];

  $content = $this->cObj->substituteMarkerArrayCached($template,
$subpartArray, array(), array());
  ...
----------

I think I have to parse my $this->cObj->data['bodytext'] first, but how
should I do that? Do I have to write an own function (would not be a
problem: get 'int_target' >> get target's page 'type' >> preg_replace), but
I hope there is a more elegant way.

Thanx in advance
Dim







More information about the TYPO3-dev mailing list