Added feature #13865: Possibility to configure alternative parameter for jumpurl...
authorBenni Mack <benni.mack@typo3.org>
Tue, 13 Apr 2010 15:11:10 +0000 (15:11 +0000)
committerBenni Mack <benni.mack@typo3.org>
Tue, 13 Apr 2010 15:11:10 +0000 (15:11 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7341 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index ec3bc70..40e8c6c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
+2010-04-13  Benjamin Mack  <benni@typo3.org>
+
+       * Added feature #13865: Possibility to configure alternative parameter for jumpurl filelinks (Thanks to Sebastian Gebhard)
+
 2010-04-13  Susanne Moog <typo3@susanne-moog.de>
+
        * Added feature #5500: Load Inline Elements On Demand (thanks to Harald Glaser & Vladimir Podkovanov)
 
 2010-04-13  Dmitry Dulepov <dmitry.dulepov@gmail.com>
index 1c049cb..f514d0f 100644 (file)
@@ -4570,8 +4570,9 @@ class tslib_cObj {
 
                        // the jumpURL feature will be taken care of by typoLink, only "jumpurl.secure = 1" is applyable needed for special link creation
                        if ($conf['jumpurl.']['secure']) {
+                               $alternativeJumpUrlParameter = $this->stdWrap($conf['jumpurl.']['parameter'], $conf['jumpurl.']['parameter.']);
                                $typoLinkConf = array(
-                                       'parameter'  => $GLOBALS['TSFE']->id . ',' . $GLOBALS['TSFE']->type,
+                                       'parameter'  => ($alternativeJumpUrlParameter ? $alternativeJumpUrlParameter : ($GLOBALS['TSFE']->id . ',' . $GLOBALS['TSFE']->type)),
                                        'fileTarget' => $conf['target'],
                                        'ATagParams' => $this->getATagParams($conf),
                                        'additionalParams' => '&jumpurl=' . rawurlencode($theFileEnc) . $this->locDataJU($theFileEnc, $conf['jumpurl.']['secure.']) . $GLOBALS['TSFE']->getMethodUrlIdToken