[TYPO3-dev] enableFields for eID functions

Sebastian Böttger sebastian.boettger at gmail.com
Mon Oct 29 08:42:01 CET 2007


Hi,

in consideration of the fact that more and more ajax functionality also 
in the frontend of TYPO3 is coming up, there should be a possibilty to 
use enableFields also if the frontend is not loaded (because of an eID 
call).

I tried

GLOBALS['TSFE']->sys_page->enableFields AND t3lib_pageSelect::enableFields.

In the first time, GLOBALS['TSFE'] was not loaded (because of the eID call)
In the second I got an TCA table xy not loaded error.

Maybe you should move this function to $TYPO3_DB, because you also need 
it in different frontend engines, called by eID, than the default one.
Another possibility would be, to load the TCA Array in 
t3lib_page.php:938 enableFields

        $ctrl = $GLOBALS['TCA'][$table]['ctrl'];
        $query='';
        if (is_array($ctrl))    {

Instead of just throwing an error, why not trying to load the TCA Array 
first?

Regards,
Sebastian Böttger




More information about the TYPO3-dev mailing list