Index: t3lib/class.t3lib_tceforms.php =================================================================== --- t3lib/class.t3lib_tceforms.php (revision 5109) +++ t3lib/class.t3lib_tceforms.php (working copy) @@ -4909,6 +4909,20 @@ if (substr($fieldTitle, -1, 1) == ':') { $fieldTitle = substr($fieldTitle, 0, strlen($fieldTitle) - 1); } + + // Hover popup textbox with alttitle and description + if ($this->edit_showFieldHelp == 'icon') { + $arrow = ''; + // add description text + $hoverText = '' . nl2br(htmlspecialchars($value)) . $arrow . ''; + // put header before the rest of the text + $alttitle = $GLOBALS['LANG']->sL($cshFile . ':' . $field . '.alttitle'); + if ($alttitle) { + $hoverText = '' . $alttitle . '
' . $hoverText; + } + $hoverText = '' . $GLOBALS['LANG']->hscAndCharConv($hoverText, false) . ''; + } + // CSH exists $params = base64_encode(serialize(array( 'cshFile' => $cshFile, @@ -4917,7 +4931,7 @@ ))); $aOnClick = 'vHWin=window.open(\''.$this->backPath.'view_help.php?ffID=' . $params . '\',\'viewFieldHelp\',\'height=400,width=600,status=0,menubar=0,scrollbars=1\');vHWin.focus();return false;'; return ''. - 'backPath,'gfx/helpbubble.gif','width="14" height="14"').' hspace="2" border="0" class="absmiddle"'.($GLOBALS['CLIENT']['FORMSTYLE']?' style="cursor:help;"':'').' alt="" />'. + 'backPath,'gfx/helpbubble.gif','width="14" height="14"').' hspace="2" border="0" class="absmiddle"'.($GLOBALS['CLIENT']['FORMSTYLE']?' style="cursor:help;"':'').' alt="" />' . $hoverText . ''; } }