ich habe eine Content Abfrage und möchte ein Feld an eine UserFunction 
übergeben, doch der Array bleibt leer:

includeLibs.user_misc = fileadmin/test.php

60 = CONTENT
60{
..if.isFalse.field = bodytext
..table = tt_content
..select{
.....pidInList.field = pid
.....begin = 0
.....max = 1
.....orderBy = sorting ASC
.....where = colPos=0
..}
..wrap = |
..renderObj = COA
..renderObj{
.....70 = TEXT
.....70{
........field = bodytext
........required = 1
........stripHtml = 1
........crop = 30 | ... | 1
........wrap = <p class="content">|</p>
.....}
.....80 = USER
.....80{
........userFunc = user_misc->stripme
........userFunc{
...........input = TEXT
...........input.field = bodytext
........}
.....}
..}
}

die 70 wird auf der Seite mit dem Inhalt aus dem Feld bodytext ausgegeben, doch 
in 80 wird das Feld bzw. der Inhalt nicht an meine Funktion übergeben. Hier die 
funktion:

<?php
class user_misc{
..function stripme($content = '', $conf = array()){
.....// config
.....global $TSFE;
.....$var = "input";
.....$local_cObj = $TSFE->cObj; // cObject
.....$conf = $conf['userFunc.']; // ts config
.....
.....$input = $conf[$var];
.....$input = $local_cObj->cObjGetSingle($conf[$var], $conf[$var.'.']);
.....
.....return " 1".$input; // get string
..}
}
?>

Ausgabe: 1 1 1 1 1 Zur fehlersuche habe ich auch mit mehreren variablennamen probiert da einige ja Reserviert sein könnten.
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an