[TYPO3-english] Re: typoLink_URL, forceAbsoluteUrl, and SEO friendly URLs

Bernhard Schenkenfelder bernhard at schenkenfelder.co.at
Mon Dec 22 08:41:04 CET 2014


$this does not work because I'm not in an object context... The following snippet returns the same URL, http://10.0.0.82/typo3/index.php?id=35

$conf['parameter'] = $_GET['id'];
$conf['useCashHash'] = true; // We must add cHash
$conf['returnLast'] = 'url'; // If you wish to get url as your output
$conf['forceAbsoluteUrl'] = true;

$cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer');

print $cObj->typoLink('Link', $conf);


More information about the TYPO3-english mailing list