Index: typo3/sysext/cms/tslib/class.tslib_fe.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_fe.php (revision 4388) +++ typo3/sysext/cms/tslib/class.tslib_fe.php (working copy) @@ -320,6 +320,7 @@ var $debug=''; // Debug flag, may output special debug html-code. var $intTarget=''; // Default internal target var $extTarget=''; // Default external target + var $fileTarget=''; // Default file link target var $MP_defaults=array(); // Keys are page ids and values are default &MP (mount point) values to set when using the linking features...) var $spamProtectEmailAddresses=0; // If set, typolink() function encrypts email addresses. Is set in pagegen-class. var $absRefPrefix=''; // Absolute Reference prefix Index: typo3/sysext/cms/tslib/class.tslib_pagegen.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_pagegen.php (revision 4388) +++ typo3/sysext/cms/tslib/class.tslib_pagegen.php (working copy) @@ -146,6 +146,7 @@ // Internal and External target defaults $GLOBALS['TSFE']->intTarget = ''.$GLOBALS['TSFE']->config['config']['intTarget']; $GLOBALS['TSFE']->extTarget = ''.$GLOBALS['TSFE']->config['config']['extTarget']; + $GLOBALS['TSFE']->fileTarget = ''.$GLOBALS['TSFE']->config['config']['fileTarget']; if ($GLOBALS['TSFE']->config['config']['spamProtectEmailAddresses'] === 'ascii') { $GLOBALS['TSFE']->spamProtectEmailAddresses = 'ascii'; } else { Index: typo3/sysext/cms/tslib/class.tslib_content.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_content.php (revision 4388) +++ typo3/sysext/cms/tslib/class.tslib_content.php (working copy) @@ -5357,6 +5357,8 @@ } else { $this->lastTypoLinkUrl = $GLOBALS['TSFE']->absRefPrefix.$link_param; } + $target = isset($conf['fileTarget']) ? $conf['fileTarget'] : $GLOBALS['TSFE']->fileTarget; + if ($conf['fileTarget.']) {$target = $this->stdWrap($target, $conf['fileTarget.']);} if ($forceTarget) {$target=$forceTarget;} $this->lastTypoLinkTarget = $target; @@ -5654,6 +5656,7 @@ if ($target) { $conf['target']=$target; $conf['extTarget']=$target; + $conf['fileTarget']=$target; } if (is_array($urlParameters)) { if (count($urlParameters)) {