Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Typo3: Reference about TSFE array

Tags:

typo3

Where can be found references about the $GLOBALS['TSFE'] variable for typo3?

For example some code snippets report that "TSFE:id" is the id of the current page, but where can I find the reference about this variables?

like image 828
Ste Avatar asked Mar 22 '23 01:03

Ste


1 Answers

There is none. Really :-(.

But you also must know that $GLOBALS['TSFE'] (TypoScript Frontend) is not just an array containing some information, TSFE also consists of objects that can be used by extensions or in TypoScript context to access data from the current page or user. E.g.

$GLOBALS['TSFE']->sys_page is an instance of \TYPO3\CMS\Frontend\Page\PageRepository $GLOBALS['TSFE']->fe_user is an instance of \TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication

So basically the documentation is spread all over the TYPO3 documentation. You will also realize that a lot of the information can be accessed or used by TypoScript or TYPO3 API without needing to parse the TSFE array.

like image 100
lorenz Avatar answered Apr 06 '23 14:04

lorenz