Nochmal zusammenfassend:
class.tx_rsyscsv2front_pi1.php
PHP-Code:
foreach($words as $word){
if(preg_match('".jpg"', $word)===1){
$image = array(
'file' => 'fileadmin/farben/'.$word,
);
$img = $conf["image."];
foreach ($conf as $key => $value) {
echo $key;
echo $value;
}
$img['file'] = $image;
$word = $this->cObj->IMAGE($img);
$content .= $word .' ';
} else {
$content = "<p>$word</p>";
}
}
gibt mir das conf array aus : userFunctx_rsyscsv2front_pi1->mainimageIMAGEimage.Array
/static/frontend/setup.txt
PHP-Code:
plugin.tx_rsyscsv2front_pi1 {
image {
imageLinkWrap = 1
imageLinkWrap {
enable = 1
ATagParams = rel="lightbox"
}
}
Statisch eingebunden ist das ganze im Basistemplate.