[TYPO3-mvc] eID problem once again - link generation

Philipp Wrann philippwrann at gmail.com
Wed Feb 18 11:10:55 CET 2015


Hey,

in my extension i have an eid script which is very complex (and yes - i know, eid is not the best option, but a complete rebuilt is not an option at the moment). I basically need a full features typoscript frontend because i need translations, link generation, typoscript configurations and so on.

My problem is as follows:
I generate some Links using the uriBuilder. Everything is fine except the fact, that the passed L param (language uid) is not included in the generated link.

In regular application context the same service is used to generate links and in those contexts it works. But in my eID environment it does not.

Here is my bootsrap:
$id = $_REQUEST['id'] ? (integer) $_REQUEST['id'] : 1;
	$GLOBALS['TSFE'] = Utility::makeInstance('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController',$TYPO3_CONF_VARS,$id,0);
	/* @var $GLOBALS['TSFE'] Frontend\Controller\TypoScriptFrontendController */
	Frontend\Utility\EidUtility::initLanguage();
	$GLOBALS['TSFE']->connectToDB();
	$GLOBALS['TSFE']->includeTCA();
	$GLOBALS['TSFE']->initFEuser();
	$GLOBALS['TSFE']->checkAlternativeIdMethods();
	$GLOBALS['TSFE']->clear_preview();
	$GLOBALS['TSFE']->determineId();
	$GLOBALS['TSFE']->initTemplate();
	$GLOBALS['TSFE']->getConfigArray();
	$GLOBALS['TSFE']->cObj = Utility::makeInstance('TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer');
	$GLOBALS['TSFE']->settingLanguage();
	$GLOBALS['TSFE']->settingLocale();
	
	//Connect to database
	Frontend\Utility\EidUtility::connectDB();


In the service that generates the links i do this:
$this->uriBuilder->reset()->setArguments(array('someparam'=>$object->getUid()))->setTargetPageUid($showPageUid)->buildFrontendUri();


More information about the TYPO3-project-typo3v4mvc mailing list