Index: typo3/class.browse_links.php =================================================================== --- typo3/class.browse_links.php (revision 6354) +++ typo3/class.browse_links.php (working copy) @@ -1268,6 +1268,97 @@ // Adding the menu and header to the top of page: $content.=$this->printCurrentUrl($this->curUrlInfo['info']).'
'; + // Prepare the form with link options + $linkOptions = ' + + +
+ + + + + +
' . $GLOBALS['LANG']->getLL('class', 1) . 'doc->formWidth(10) . ' />
+
+ + +
+ + + + + +
' . $GLOBALS['LANG']->getLL('title', 1) . 'doc->formWidth(10) . ' />
+
+'; + + // Target: + $linkTarget = ' + + +
+ + + + + + + + + + + +
' . $GLOBALS['LANG']->getLL('target',1) . ':doc->formWidth(10) . ' /> + + '; + if (($this->curUrlInfo['act'] == 'page' || $this->curUrlInfo['act'] == 'file' || $this->curUrlInfo['act'] == 'folder') && $this->curUrlArray['href'] && $this->curUrlInfo['act'] == $this->act) { + $linkTarget .= ' + '; + } + + $selectJS = ' + if (document.ltargetform.popup_width.options[document.ltargetform.popup_width.selectedIndex].value>0 && document.ltargetform.popup_height.options[document.ltargetform.popup_height.selectedIndex].value>0) { + document.ltargetform.ltarget.value = document.ltargetform.popup_width.options[document.ltargetform.popup_width.selectedIndex].value+"x"+document.ltargetform.popup_height.options[document.ltargetform.popup_height.selectedIndex].value; + browse_links_setTarget(document.ltargetform.ltarget.value); + browse_links_setClass(document.lclassform.lclass.value); + browse_links_setTitle(document.ltitleform.ltitle.value); + document.ltargetform.popup_width.selectedIndex=0; + document.ltargetform.popup_height.selectedIndex=0; + } + '; + + $linkTarget .= '
' . $GLOBALS['LANG']->getLL('target_popUpWindow', 1) . ': + + x + +
+
'; + // Depending on the current action we will create the actual module content for selecting a link: switch($this->act) { case 'mail': @@ -1286,6 +1377,7 @@ '; $content.=$extUrl; + $content .= $linkOptions; break; case 'url': $extUrl=' @@ -1303,6 +1395,7 @@ '; $content.=$extUrl; + $content .= $linkOptions . $linkTarget; break; case 'file': case 'folder': @@ -1338,6 +1431,7 @@ '.$this->barheader($GLOBALS['LANG']->getLL('folderTree').':').$tree.' '.$files.' + ' . $this->barheader($GLOBALS['LANG']->getLL('linkOptions') . ':') . $linkOptions . $linkTarget . ' '; @@ -1399,6 +1493,8 @@ '; } + + $content .= $linkOptions . $linkTarget; break; case 'page': $pagetree = t3lib_div::makeInstance('rtePageTree'); @@ -1414,118 +1510,20 @@ '.$this->barheader($GLOBALS['LANG']->getLL('pageTree').':').$tree.' '.$cElements.' + ' . $this->barheader($GLOBALS['LANG']->getLL('linkOptions') . ':') . $linkOptions . $linkTarget . ' - '; + '; break; default: //call hook foreach($this->hookObjects as $hookObject) { $content .= $hookObject->getTab($this->act); } + $content .= $linkOptions . $linkTarget; break; } - $content .= ' - - -
- - - - - -
' . $GLOBALS['LANG']->getLL('class', 1) . 'doc->formWidth(10) . ' />
-
- - -
- - - - - -
' . $GLOBALS['LANG']->getLL('title', 1) . 'doc->formWidth(10) . ' />
-
-'; - - // Target: - if ($this->act!='mail') { - $ltarget=' - - - - -
- - - - - - - - - - - -
'.$GLOBALS['LANG']->getLL('target',1).':doc->formWidth(10) . ' /> - - '; - if (($this->curUrlInfo['act'] == 'page' || $this->curUrlInfo['act'] == 'file' || $this->curUrlInfo['act'] == 'folder') && $this->curUrlArray['href'] && $this->curUrlInfo['act'] == $this->act) { - $ltarget.=' - '; - } - - $selectJS = ' - if (document.ltargetform.popup_width.options[document.ltargetform.popup_width.selectedIndex].value>0 && document.ltargetform.popup_height.options[document.ltargetform.popup_height.selectedIndex].value>0) { - document.ltargetform.ltarget.value = document.ltargetform.popup_width.options[document.ltargetform.popup_width.selectedIndex].value+"x"+document.ltargetform.popup_height.options[document.ltargetform.popup_height.selectedIndex].value; - browse_links_setTarget(document.ltargetform.ltarget.value); - browse_links_setClass(document.lclassform.lclass.value); - browse_links_setTitle(document.ltitleform.ltitle.value); - document.ltargetform.popup_width.selectedIndex=0; - document.ltargetform.popup_height.selectedIndex=0; - } - '; - - $ltarget.='
'.$GLOBALS['LANG']->getLL('target_popUpWindow',1).': - - x - -
-
'; - - // Add "target selector" box to content: - $content.=$ltarget; - - // Add some space - $content.='

'; - } - // End page, return content: $content.= $this->doc->endPage(); $content = $this->doc->insertStylesAndJS($content); Index: typo3/sysext/lang/locallang_browse_links.xml =================================================================== --- typo3/sysext/lang/locallang_browse_links.xml (revision 6354) +++ typo3/sysext/lang/locallang_browse_links.xml (working copy) @@ -28,6 +28,7 @@ + Index: typo3/sysext/cms/tbl_tt_content.php =================================================================== --- typo3/sysext/cms/tbl_tt_content.php (revision 6354) +++ typo3/sysext/cms/tbl_tt_content.php (working copy) @@ -234,7 +234,7 @@ 'title' => 'Link', 'icon' => 'link_popup.gif', 'script' => 'browse_links.php?mode=wizard', - 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1' + 'JSopenParams' => 'height=600,width=950,status=0,menubar=0,scrollbars=1' ) ), 'softref' => 'typolink' @@ -494,7 +494,7 @@ 'title' => 'Link', 'icon' => 'link_popup.gif', 'script' => 'browse_links.php?mode=wizard', - 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1' + 'JSopenParams' => 'height=600,width=950,status=0,menubar=0,scrollbars=1' ) ), 'softref' => 'typolink[linkList]'