[Typo3-dev] imagepopup
Ries van Twisk
typo3 at rvt.dds.nl
Mon Apr 4 16:20:47 CEST 2005
Rene,
this is part of the code I am using....
Ries
//imageLinkWrap Configuration:
$lconf['bodyTag'] = '<body bgColor=white leftmargin="0"
topmargin="0" marginwidth="0" marginheight="0">';
$lconf['wrap'] = '<a href="javascript: close();"> | </a>';
$lconf['JSwindow'] = '1';
$lconf['JSwindow.newWindow'] = '0';
$lconf['JSwindow.expand'] = '0,0';
$lconf['enable'] = '1';
$imgTSConfig = array();
$imgTSConfig['border'] = 2;
$imgTSConfig['params'] = 'style="background:#000000;padding:
2px;border:0px;marging:0px;"';
$carray['SMARTY']['imageWidth'] = 150;
$i=0;
foreach ($selectedImages AS $key => $value) {
$cObj = t3lib_div::makeInstance("tslib_cObj");
$imgFile =
'uploads/ltg_userForms'.$selectedImages[$key]['name'];
$imgTSConfig['altText']= $selectedImages[$key]['Caption'];
$imgTSConfig['file.']['maxW'] =
$carray['SMARTY']['imageWidth'];
$imgTSConfig['file'] = $imgFile;
$carray['SMARTY']['image'.$i] =
$cObj->imageLinkWrap($cObj->IMAGE($imgTSConfig),$imgFile,$lconf);
$carray['SMARTY']['Caption'.$i] =
$selectedImages[$key]['Caption'];
$i++;
}
> Hi,
>
> i try in my extension to output some previewimage witch should be a
> link to a popupwindow that will show the full image.
> in order of that i've written the folowing in my extension:
>
> $imageConfig = $this->conf['imagePopup.'];
> $imageConfig['file.']['maxW'] = 100;
> $imageConfig['file.']['maxH'] = 50;
> $imageConfig['file'] = 'uploads/images/'.$image[0];
> $imageConfig['alttext'] = $image[0];
> $markerArray["###IMAGE1###"]=
> $this->cObj->cIMAGE($imageConfig['file'],$imageConfig);
>
> that gives me an image with the given sizes but no popupwindow eg. link.
> What's wrong ? have i forgoten something ?
>
> Greets René
>
--
R. van Twisk
http://www.metamorf.net
Our Typo3 enabled website: http://www.livetravelguides.com
Instand help for Typo3? irc:/irc.freenode.net/typo3
Looking for documentation? http://typo3.org/documentation/
More information about the TYPO3-dev
mailing list