[Typo3-dev] Adding much window.open paramater to openPic

Francesco di Francia darksky77 at email.it
Fri Oct 14 13:16:00 CEST 2005


Hi, sorry if it's a feature request and i post here and not in bugtrack 
  but i'm not sure if the feature requested is the only way, so i ask 
there where there are coder.

I found that the window.open parameter managed by openPic in the case of 
the "Click to enlarge" ( JS_Windows = 1 ) are hardcoded and they are 
only status=0,menubar=0. I'm referring to line 2571 of 
tslib/class.tslib_content.php :

htmlspecialchars('openPic(\''.$GLOBALS['TSFE']->baseUrlWrap($url).'\',\''.($conf['JSwindow.']['newWindow']?md5($url):'thePicture').'\',\'width='.($dims[0]+$offset[0]).',height='.($dims[1]+$offset[1]).',status=0,menubar=0\'); 
return false;').
						

If the enlarged picture is very big, i.e. 1024x768, scrollbars are 
needed. I found that there's no way to display  scrollbars and have much 
control on the opening windows ( i.e. top and left parameter ), i can 
only hack manually class.tslib_content.php, adding other parameter for 
window.open.


Regards,

Francesco




More information about the TYPO3-dev mailing list