[TYPO3-dev] How to transform db content with <LINK> tags to <A> tags?
Ricardo Scachetti Pereira
ricardo at tdwg.org
Mon Jul 17 18:48:03 CEST 2006
Hi all,
I've created a Typo3 plugin that renders content from a custom
table. I'm using the following code to load the record from the database:
// the page is linked to a group: then display it in
singleView mode
$this->internal['currentTable'] = 'tx_tdwg_subgroups';
$this->internal['currentRow'] =
$this->pi_getRecord('tx_tdwg_subgroups',$linkedTdwgGroup);
$content = $this->singleView($content,$conf);
The variable $this is an instance of my pligin class (subclass of
tslib_pibase).
The problem is that the field values still have Typo3 specific tags
like <LINK>, like in the sample below:
Wiki: <LINK
http://wiki.gbif.org/guidwiki/wikka.php>http://wiki.gbif.org/guidwiki/wikka.php</LINK>
Mailing List: <LINK
http://listserv.nhm.ku.edu/archives/tdwg-guid.html>http://listserv.nhm.ku.edu/archives/tdwg-guid.html</LINK>
What is the right way of transforming that content, i.e., turn the
<LINK> tags into <A> tags?
I'm trying to use methods t3lib_parsehtml_proc::RTE_transform() or
even lib_rteapi::transformContent() but I'm having a hard time figuring
out how to initialize the objects.
Could anyone help me out?
Thanks in advance.
Best regards,
Ricardo
More information about the TYPO3-dev
mailing list