/** * @param TypoScriptFrontendController $typoScriptFrontendController */ protected function configureLinkBuilding(TypoScriptFrontendController $typoScriptFrontendController) { // Mount point parameters if ($typoScriptFrontendController->config['config']['MP_defaults']) { $temp_parts = GeneralUtility::trimExplode('|', $typoScriptFrontendController->config['config']['MP_defaults'], TRUE); foreach ($temp_parts as $temp_p) { list($temp_idP, $temp_MPp) = explode(':', $temp_p, 2); $temp_ids = GeneralUtility::intExplode(',', $temp_idP); foreach ($temp_ids as $temp_id) { $typoScriptFrontendController->MP_defaults[$temp_id] = $temp_MPp; } } } // Internal and External target defaults $typoScriptFrontendController->intTarget = '' . $typoScriptFrontendController->config['config']['intTarget']; $typoScriptFrontendController->extTarget = '' . $typoScriptFrontendController->config['config']['extTarget']; $typoScriptFrontendController->fileTarget = '' . $typoScriptFrontendController->config['config']['fileTarget']; // calculate the absolute path prefix if (!empty($typoScriptFrontendController->config['config']['absRefPrefix'])) { $absRefPrefix = trim($typoScriptFrontendController->config['config']['absRefPrefix']); if ($absRefPrefix === 'auto') { $typoScriptFrontendController->absRefPrefix = GeneralUtility::getIndpEnv('TYPO3_SITE_PATH'); } else { $typoScriptFrontendController->absRefPrefix = $absRefPrefix; } } else { $typoScriptFrontendController->absRefPrefix = ''; } // linkVars $typoScriptFrontendController->calculateLinkVars(); $typoScriptFrontendController->ATagParams = trim($typoScriptFrontendController->config['config']['ATagParams']) ? ' ' . trim($typoScriptFrontendController->config['config']['ATagParams']) : ''; if ($typoScriptFrontendController->config['config']['spamProtectEmailAddresses'] === 'ascii') { $typoScriptFrontendController->spamProtectEmailAddresses = 'ascii'; } else { $typoScriptFrontendController->spamProtectEmailAddresses = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($typoScriptFrontendController->config['config']['spamProtectEmailAddresses'], -10, 10, 0); } // dtdAllowsFrames indicates whether to use the target attribute in links $typoScriptFrontendController->dtdAllowsFrames = TRUE; }