Hi nochmals,
ich habe jetzt eine *.php datei erstellt und sie im root setup
Typoscript-Code:
1: 2:
| typeNum = 0 includeLibs.content_empty = ../*.php |
eingefügt.
die Php-Datei ist schonmal soweit aufgebaut:
PHP-Code:
<?php
function content_empty() {
if(mysql_num_rows(mysql_query($sql) > 0) {
return = true;
} else {
return = false;
}
}
und im Typo im kaskadierten template temp.druckversion:
Typoscript-Code:
1: 2: 3: 4:
| [userFunc content_empty()] ...[b] - ERROR:[/b] Line 1: Object Name String, "..." was not preceeded by any operator, =<>({ - ERROR: Line 1: Object Name String, "...[b]" contains invalid character "[". Must be alphanumeric or one of: "_-." ...[b] - ERROR:[/b] Line 2: Object Name String, "..." was not preceeded by any operator, =<>({ - ERROR: Line 2: Object Name String, "...[b]" contains invalid character "[". Must be alphanumeric or one of: "_-." [global] |
So fürs erste weiß ich nicht weiter. Ich schätze ich muss die Variable $sql auch irgendwie füllen lassen und in der function content_empty(???muss was hier stehen???)
Kann mir jemand Tipps für die weitere Umsetzung geben?
Oder gehe ich mein Problem komplett falsch an?
pls help