[TYPO3-dev] How to set BE_MOD variables with Typoscript?

Zorik zorik2005 at zorik.net
Sat Dec 9 09:58:39 CET 2006


Tapio Markula wrote:

> $this->pageinfo['uid'] was empty but the config worked.

empty value equals zero, so that $this->pageinfo['uid']==0. There is a page
with uid zero - the root page.
Meaning - you got TSconfig for the typo3 root page.

As for user - it will provide you TSconfig for currently active user - you
do not have to provide a user id.

> getModTSconfig(99999,....
> would certainly work too even if it is nonsense.

In this scenario page TSconfig will not exist, but user TSconfig will exist
and, as user TSconfig overrides page TSconfig - you may get correct result.

-- 
Zorik




More information about the TYPO3-dev mailing list