hallo,
als anfänger für extensions habe ich eine frage.
soetwas ähnliches habe ich hier schon gelesen, aber nicht verstanden.
so lese ich mein content in der class.tx_xxxdesktop_pi1.php aus:
function main($content,$conf) {
$this->conf=$conf;
$this->pi_setPiVarDefaults();
$this->pi_loadLL();
/* first rte box costumer */
$contentUID = explode(":",$this->cObj->currentRecord);
$data = $this->pi_getRecord($contentUID[0],$contentUID[1]);
$content = '<div class="textCustomer">'.$data['tx_xxxdesktop_myrte_costumer'].'</div>';
/* second rte box project */
$content.= '<div class="textProject">'.$data['tx_xxxdesktop_myrte_project'].'</div>';
/* third rte box jobs */
$content.= '<div class="textJobs">'.$data['tx_xxxdesktop_myrte_jobs'].'</div>';
/* start picture */
foreach(explode(",",$data['tx_xxxdesktop_images']) as $k => $i){
$content.= '<div class="textImages">'.$this->getImage($i).'</div>';
$content.= ' - '.$this->cObj->typolink($i,$conf);
}
$content.= '<div class="textcount">Anzahl: '.($k+1).'</div>';
return $this->pi_wrapInBaseClass($content);
}
ich würde gern den link zu diesem bild haben.
in zeile 20. --> den bildnamen zeigt er mir, aber ich weiß nicht was $conf laut api machen soll.
danke euch