[TYPO3-dev] mapped tables and Ajax EID
Frank
frank at f03.eu
Fri Oct 11 08:54:25 CEST 2013
Hi,
I would recomnend using a pageType if you need all the TS setup and stuff anyway, much less of a hassle...
> Am 11.10.2013 um 08:31 schrieb Philipp <philippwrann at gmx.at>:
>
> You have to parse your typoscript, so extend your bootstrap process for a few things.
> What you need is to init the TyposcriptFrontendController...
> I have an eID dispatcher that starts like this:
> <?php
> use TYPO3\CMS\Core\Utility\GeneralUtility as Utility;
> use TYPO3\CMS\Frontend as Frontend;
>
> //determine id
> $id = $_REQUEST['id'];
>
> if (isset($id)) {
> $id = $_REQUEST['id'];
> $GLOBALS['TSFE'] = Utility::makeInstance('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController',$TYPO3_CONF_VARS,$id,0);
> /* @var $GLOBALS['TSFE'] Frontend\Controller\TypoScriptFrontendController */
> $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();
> } else {
> $GLOBALS['TSFE'] = Utility::makeInstance('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController',$TYPO3_CONF_VARS,0,0);
> $GLOBALS['TSFE']->sys_page = Utility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
> /* @var $GLOBALS['TSFE']->sysd_page Frontend\Page\PageRepository */
> $GLOBALS['TSFE']->initFEuser();
> }
>
> maybe that helps you.
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
More information about the TYPO3-dev
mailing list