[TYPO3-german] <LINK>-Pseudotags wandeln
Elmar Hinz
elmar.DOT.hinz at team.MINUS.red.DOT.net
Sat Dec 31 13:09:23 CET 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> den in die Seite $id geschriebenen Text und gibt ihn in ein Popup-Fenster aus.
> Klappt soweit alles, nur die <LINK>-Pseudotags werden nicht <a>Tags
> gewandelt. Jetzt suche ich nach einer function die in $text eben dies tut. In
> tslib_pibase.php bin ich nicht fündig geworden. Wie mach ich's richtig?
Das ist eines der schwierigsten Kapitel. Sicher willst Du eigentlich,
daß der Text genauso behandelt wird wie anderer Kontent. Dazu mußt Du
auf den Kontent-Parser zurückgreifen, der wiederum über TS konfiguriert
wird. Du kopierst beispielsweise die Default-Konfiguration aus
lib.parseFunc_RTE.
In pi1/static/setup.txt:
plugin.tx_yourkey_pi1 {
parseFunc < lib.parseFunc_RTE
// parseFunc < tt_content.text.20.parseFunc
}
Im Plugin pi1/class.tx_yourkey_pi1.php:
$text = $this->cObj->parseFunc($text, $this->conf['parseFunc.']);
Regards
Elmar
- --
Climate change 2005: Mexico, Guatemala, New Orleans, Sahel, Bangladesh,
Spain, Portugal, Austria, Swiss, France, ...
Production of CO2 is killing people.
Production of CO2 just for fun is killing people just for fun.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDtnTyO976RNoy/18RAuyAAKCcb5v8vJm1bUJa26TXunvral90FACg1at1
AvbKlthYGJj7lvZhJHZmYmM=
=O2gr
-----END PGP SIGNATURE-----
More information about the TYPO3-german
mailing list