[TYPO3-dev] eID script and admin panel properties

Chris Müller mueller at cyperfection.de
Thu Sep 19 14:30:26 CEST 2013


Hello,

I have a web page with an ajax request. On the web page has a logged in 
backend user the possibility to use the admin panel to show hidden 
records. So far so good.

On this page there as an ajax request to get more data. Now I am trying 
to get also hidden records in the eID script of the ajax request.

I tried the following:

$GLOBALS['TSFE'] = GeneralUtility::makeInstance(
     'TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController',
     $GLOBALS['TYPO3_CONF_VARS'],
     $pid,
     0
);

$GLOBALS['TSFE']->connectToDB();
$GLOBALS['TSFE']->initFEuser();
$GLOBALS['TSFE']->determineId();
$GLOBALS['TSFE']->initTemplate();
$GLOBALS['TSFE']->getConfigArray();

$BE_USER = $GLOBALS['TSFE']->initializeBackendUser();
$BE_USER->initializeAdminPanel();
if ($BE_USER->adminPanel instanceof 
\TYPO3\CMS\Frontend\View\AdminPanelView) {
     \TYPO3\CMS\Core\Core\Bootstrap::getInstance()
         ->initializeLanguageObject();
}
$BE_USER->displayAdminPanel();

$preview = $BE_USER->adminPanel->extGetFeAdminValue('preview');

But $preview is always null.

Can someone give me a hint. Perhaps the properties of the admin panel 
are stored in some session?

Regards,
Chris.



More information about the TYPO3-dev mailing list