Habe eine Lösung gefunden.

Mit diesem Code aus cc_random_image hat es funktioniert:
                // Code aus cc_random_image
$renderCode = $this->cObj->cObjGetSingle($conf["renderObj"], $conf["renderObj."]);

                $markerArray = array();
                $selectFieldsArray = explode(',',$conf['selectFields']);

                // MarkerArray füllen und in cObj einfügen
                foreach($values AS $row) {
                        $markerArray["###uid###"] = $row['uid'];
                        $markerArray["###pid###"] = $row['pid'];
                        $markerArray["###title###"] = $row['title'];
                        $markerArray["###short###"] = $row['short'];
                        $markerArray["###image###"] = $row['image'];

                        // Code aus cc_random_image
                        $lConf = $conf['renderObj.'];
                        $this->cObj->substituteMarkerInObject($lConf, 
$markerArray);
                        $content .= 
$this->cObj->cObjGetSingle($conf['renderObj'], $lConf);
                }

Mit diesem Typoscript kann ich dann auf die Marker zugreifen:
    renderObj = COA
    renderObj {
      20 = TEXT
      20 {
        wrap = <h4>|</h4>
        value = ###title###
        crop = 28 | &hellip; | 1
      }
    }

Grüße

Stephan

schrieb Stephan Bauer:
Hallo,

ich habe folgendes Typoscript erstellt und es werden die Daten der
userFunc ausgegeben:
lib.slider-start = COA
lib.slider-start {
   10 = USER
   10 {
     userFunc = user_slider_select->main
     pidInList = 2107,2162,2353
     selectFields = uid,pid,title,short,image
     max = 4
     lang = 173

Ist es möglich, die Rückgaben der userFunc per renderObj zu formatieren?
Z.B.
     renderObj = COA
     renderObj {
       20 = TEXT
       20 {
         required = 1
         wrap = <h4>|</h4>
         field = title
         crop = 28 | &hellip; | 1
       }

Vielen Dank im Voraus.

Grüße

Stephan



_______________________________________________
TYPO3-german mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an