[FEATURE] EXT: viewpage open in blank window
authorFelix Kopp <felix-source@phorax.com>
Fri, 13 Jul 2012 04:29:56 +0000 (06:29 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 26 Jul 2012 21:18:47 +0000 (23:18 +0200)
Adds link to backend module docheader within EXT: viewpage
to open the current page in a new window.

Change-Id: I89c4a6f38bfb61fd9d5456e463840e7c9ecc5c9a
Fixes: #38918
Releases: 6.0
Reviewed-on: http://review.typo3.org/12777
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/viewpage/Resources/Private/Layouts/DocHeader.html

index 51f10d7..90480e9 100644 (file)
@@ -8,9 +8,14 @@
        <div class="typo3-fullDoc">
                <div id="typo3-docheader">
                        <div id="typo3-docheader-row1">
-                               <div class="docheader-row1-left">
+                               <div class="buttonsleft">
+                                       <f:comment>
+                                               Uri was added by javascript window.open and not a simple <a href>
+                                               because f:be.buttons.icon does not support the target parameter.
+                                       </f:comment>
+                                       <f:be.buttons.icon uri="javascript:window.open('{url}', '');" icon="actions-document-view" />
                                </div>
-                               <div class="docheader-row2-right">
+                               <div class="buttonsright">
                                        <f:be.buttons.icon uri="javascript:document.getElementById('tx_viewpage_iframe').contentWindow.location.reload(true);" icon="actions-system-refresh" />
                                        <f:be.buttons.shortcut />
                                </div>