[TYPO3] DB Integration (WFQBE) Template
Manfred
mobil at csb86.ch
Thu Aug 23 23:30:50 CEST 2007
Hi
on my Site i use WFQBE. It works great. Just one Problem ..
In my Database there is also RTF Content. Finaly i found away to
convert this to HTML. But the Problem is i need to insert some
PHP code in the WFQBE-Template and there all my PHP-Code is not executed.?
The script i use is:
<?php
include('fileadmin/template/wfqbe/rtfclass.php');
$sql="SELECT * FROM TESTIMONY WHERE (TESTIMONY.T_NO = '655')";
$result= mysql_query($sql) or die(mysql_error());
$testimony = mysql_fetch_array($result);
$r = new rtf ($testimony['TESTIMONY']);
$r->output("html");
$r->parse();
if( count( $r->err) == 0) { // no errors detected
echo $r->out;
}
?>
with the class from:
http://directory.fsf.org/webauth/htmlconvert/rtf2html.html
My thought was to pass the php-script the id from the Data.
Something like that
<?php
$testimony_no = ###FIELD_T_NO###
include('fileadmin/template/wfqbe/wfqbe_t_rtf2html.php');
?>
I tried also to test it with this:
<?php
phpinfo()
?>
Without any success.
Any Help on this?
Shalom
Manfred
More information about the TYPO3-english
mailing list