Hi Leute,
wie bekomme ich über die API Methoden ein a tag um ein img gewrapped?
Auszug aus meiner pi Klasse:
$thumb = 'uploads/tx_mygallery/bild_small.jpg';
$picture = 'uploads/tx_mygallery/bild.jpg';
$content .= $this->cObj->fileResource($thumb);
//output bislang : <img src="uploads/tx_mygallery/bild_small.jpg" width="120" height="120" border="0" alt="" title="" />
//Wie bekomme über die API die a tags um das img, es soll am ende so aussehen:
//<a href="uploads/tx_mygallery/bild.jpg" rel="lightbox" title="titel">
//<img src="uploads/tx_mygallery/bild_small.jpg" alt="" />
//</a>
Irgendwie krieg ich das mit typolinkWrap nicht hin, welche parameter muß man denn angeben #paralyzed# also so soll es am ende aussehen:
<a href="uploads/tx_mygallery/bild.jpg" rel="lightbox" title="titel">
<img src="uploads/tx_mygallery/bild_small.jpg" alt="" />
</a>
Ein kleines Howto tu typolinks: http://hachmeister.org/de/typo/tutorien/entwicklung/erstelle-korrekte-typolinks/
ansonsten kannst Du das auch so "wrappen":
$markerArray['###IMAGE###'] = $this->cObj->IMAGE(
array(
'file' => path/to/my/file.img,
'file.maxW' => 100,
'altText' => $this->pi_getLL('myAltText'),
'titleText' => $this->pi_getLL('myTitleText'),
'stdWrap.addParams.title' => 'Mein Title-Tag',
'stdWrap.addParams.alt' => 'Mein Alt-Tag',
'wrap' => '<a href="'.$this->pi_getPageLink($this->config['pid'], '_top', array()).'">|</a>'
));