[Typo3] restore <LINK> to <A HREF...> in my extension
S. Teuber
traveler_in_time at gmx.net
Fri Jul 29 12:25:56 CEST 2005
Jan Slusarczyk <janslu at grupaiis.pl> wrote in
news:mailman.1.1122587620.18690.typo3-english at lists.netfielders.de:
> >
> this->cObj->parseFunc($data['yourBodyTextFieldFromYourTable'],$this->co
> nf['parser.']);
>
> > in TS:
> > plugin.whateverYourThingyIsCalled.parser <
> > tt_content.text.20.parseFunc
Hi Jan,
> And in my extension:
> ...
> $query = "SELECT lead, opis FROM user_kalendarium_data WHERE....";
> $res = mysql_query($query);
> if (list($lead, $opis) = mysql_fetch_row($res))
Depending on your TYPO3 version, starting with 3.6.0 you should consider
using $GLOBALS['TYPO3_DB']->exec_SELECTquery() rather than mysql_query().
It's for the database abstraction layer and ensures compatibility of your
extension. See typo3.org -> Documentation -> Matrix -> Coding Guidelines,
Chapter 3 (I think) -> database connectivity.
> {
> $opis =
> $this->cObj->parseFunc($data[$opis],$this->conf['parser.']);
Try
$this->cObj->parseFunc($opis, $this->conf['parser.']);
It seems to me that the first argument of parseFunc() expects the actual
content from the database field. This content is copied to the variable
$opis in
if (list($lead, $opis) = mysql_fetch_row($res))
So you need to pass that variable as first argument. You have no array
called $data at that point.
Greetings,
Sven
More information about the TYPO3-english
mailing list