[Typo3-german] Variable mit Typolink-Inhalt parsen und in HREF wandeln

Olivier Dobberkau olivier.dobberkau at dkd.de
Thu Sep 29 17:25:46 CEST 2005


Dieter Mayer wrote:
> Hallo,
>
> ich möchte in einer Extension einen Record in eine Variable einlesen
> und diese dann durch eine Funktion jagen, welche aus den
> Typoscript-Links echte Links macht. Also aus:
>
> ...accumsan et iusto odio<link 168> dignissim qui blandit</link>
> raesent luptatum...
>
> wird
>
> ...accumsan et iusto odio <a
> href="/http://blah.fasel.de/unterseite">dignissim qui blandit</a>
> praesent luptatum...
>
> Also in etwa so:
> ...
> // $row[bodytext] => da sind die <LINK's drin
> $content = WELCHE_FUNKTION_UND_WIE_GEHT_DAS($row[bodytext]);
> // und nun sind's <a href's...
> ...
>
> Dafür suche ich die entsprechende Routine. Wo finde ich die und wie
> lautet der Aufruf?

Parsefunc?

generally you have to do the following:

put that line into your ext_typoscript_setup.txt file:
plugin.tx_yourExtensionKeyWithoutUnderscores_pi1.wieauchimmer < 
tt_content.text.20.parseFunc

in your pi1 class, call: $rteText = 
$this->cObj->parseFunc($this->internal["currentRow"]["textwhatever"],$this->conf["wieauchimmer."]);

HTH

Olivier 





More information about the TYPO3-german mailing list