Index: t3lib/class.t3lib_tceforms.php =================================================================== --- t3lib/class.t3lib_tceforms.php (revision 5165) +++ t3lib/class.t3lib_tceforms.php (working copy) @@ -1593,6 +1593,20 @@ // If there is an icon for the selector box (rendered in table under)...: if ($p[2] && !$suppressIcons && (!$onlySelectedIconShown || $sM)) { list($selIconFile,$selIconInfo)=$this->getIcon($p[2]); + + // generate thumb? + if (isset($PA['fieldConf']['config']['makeThumb'])) { + if (isset($PA['fieldConf']['config']['thumbSize'])) { + $size = t3lib_div::trimExplode('x', $PA['fieldConf']['config']['thumbSize']); + $selIconInfo[3] = 'width="' . $size[0] . '" height="' . $size[1] . '"'; + } else { + $selIconInfo[3] = 'width="56" height="56"'; + } + $selIconFile = $this->backPath . 'thumbs.php?dummy=' . $GLOBALS['EXEC_TIME'] . '&file=' . rawurlencode($selIconFile) . '&size=' . + (isset($PA['fieldConf']['config']['thumbSize']) ? $PA['fieldConf']['config']['thumbSize'] : '') . + '&md5sum=' . t3lib_div::shortMD5(basename($selIconFile).':'.filemtime($selIconFile).':'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']); + } + $iOnClick = $this->elName($PA['itemFormElName']) . '.selectedIndex=' . $c . '; ' . $this->elName($PA['itemFormElName']) . '.style.backgroundImage=' . $this->elName($PA['itemFormElName']) . '.options[' . $c .'].style.backgroundImage; ' . implode('',$PA['fieldChangeFunc']).$this->blur().'return false;';