Index: t3lib/class.t3lib_tceforms.php =================================================================== --- t3lib/class.t3lib_tceforms.php (Revision 9389) +++ t3lib/class.t3lib_tceforms.php (Arbeitskopie) @@ -2254,7 +2254,7 @@ if(!$disabled && !(isset($config['disable_controls']) && t3lib_div::inList($config['disable_controls'], 'upload'))) { // Adding the upload field: if ($this->edit_docModuleUpload && $config['uploadfolder']) { - $item .= 'formWidth() . ' size="60" onchange="' . implode('', $PA['fieldChangeFunc']) . '" />'; + $item .= ''; } } break; @@ -3739,6 +3739,27 @@ t3lib_iconWorks::getSpriteIcon('actions-selection-delete', array('title' => htmlspecialchars($this->getLL('l_remove_selected')))) . ''; } + $imagesOnly = FALSE; + if ($params['thumbnails']) { + // In case we have thumbnails, check if only images are allowed. + // In this case, render them below the field, instead of to the right + $allowedExtensionList = t3lib_div::trimExplode(' ', strtolower($params['info']), TRUE); + $imageExtensionList = t3lib_div::trimExplode(',', strtolower($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']), TRUE); + $imagesOnly = TRUE; + foreach ($allowedExtensionList as $allowedExtension) { + if (!t3lib_div::inArray($imageExtensionList, $allowedExtension)) { + $imagesOnly = FALSE; + break; + } + } + } + if ($imagesOnly) { + $rightbox = ''; + $thumbnails = '
'. $this->wrapLabels($params['thumbnails']) .'
'; + } else { + $rightbox = $this->wrapLabels($params['thumbnails']); + $thumbnails = ''; + } $str=' '.($params['headers']?' @@ -3752,14 +3773,15 @@ + $thumbnails. + ($params['noList'] ? '' : ''. $this->wrapLabels($params['info'])) . + '
'. $selector. - ($params['noList'] ? '' : '
'.$this->wrapLabels($params['info'])) . - '
'. implode('
',$icons['L']).'
'. implode('
',$icons['R']).'
'. - $this->wrapLabels($params['thumbnails']). + $rightbox. '
'; Index: typo3/sysext/t3skin/stylesheets/structure/element_tceforms.css =================================================================== --- typo3/sysext/t3skin/stylesheets/structure/element_tceforms.css (Revision 9389) +++ typo3/sysext/t3skin/stylesheets/structure/element_tceforms.css (Arbeitskopie) @@ -185,12 +185,63 @@ padding-top: 6px; } +table.typo3-TCEforms div.imagethumbs { + padding-top: 6px; + white-space: normal; + width: 253px; +} + +table.typo3-TCEforms div.imagethumbs br { + display: none; +} + +table.typo3-TCEforms div.imagethumbs .nobr { + display: inline-block; + width: 60px; + height: 60px; + overflow: hidden; + margin-right: 3px; + margin-bottom: 1px; + text-align: center; +} + +table.typo3-TCEforms div.imagethumbs .nobr a { + display: block; + width: 60px; + height: 60px; + line-height: 58px; + text-align: center; +} + +table.typo3-TCEforms div.imagethumbs .nobr a img { + display: inline; + margin-right: auto; + vertical-align: middle; + margin-left: auto; +} + +table.typo3-TCEforms div.imagethumbs .nobr span { + display: none; +} + +table.typo3-TCEforms span.filetypes { + display: block; + margin-top: 6px; + white-space: normal; + width: 250px; +} + +.typo3-TCEforms select.tceforms-multiselect { + min-height: 85px; +} + .typo3-TCEforms-palette .typo3-csh-link img { padding-top: 3px; vertical-align: top; } -.typo3-TCEforms-palette selct.select { +.typo3-TCEforms-palette select.select, +.t3-form-palette-field-container select.select { margin-top: 2px; } Index: typo3/sysext/t3skin/stylesheets/visual/element_tceforms.css =================================================================== --- typo3/sysext/t3skin/stylesheets/visual/element_tceforms.css (Revision 9389) +++ typo3/sysext/t3skin/stylesheets/visual/element_tceforms.css (Arbeitskopie) @@ -294,6 +294,14 @@ border:none; } +table.typo3-TCEforms div.imagethumbs .nobr { + background-color: #CCC; +} + +table.typo3-TCEforms span.filetypes { + font-size: 0.8em; +} + input.typo3-TCEforms-suggest-search { background-image: url('../../icons/gfx/zoom.gif'); background-position: 2px center;