[TYPO3-dev] Writing to page type <> 0

Wolfgang Klinger wolfgang at stufenlos.net
Sat Feb 17 12:08:02 CET 2007


*hiya!*

Christian Lerrahn (Cerebrum) wrote:
> If this is it, it probably is. However, I need to know more than this
> if I want to use it. How can the plugin react to the typeNum if it is
> only defined like this? It will not know what kind of context it is run
> in. That is what has always been (and remains) a mystery to me. E.g. if
> I wanted a plugin to write a different kind of output on typeNum=99
> that typeNum=0, how would I do this. That's the reason why I ask the
> question here. I know how the TS works but how does it work in the
> plugin? I just haven't been able to disentangle the whole concept at
> all.

$GLOBALS['TSFE']->type
is what you're looking for

HTH
bye
Wolfgang




More information about the TYPO3-dev mailing list