[TYPO3-dev] Plugin Counter: How often a plugin was inserted on a page

Stefan Frömken firma at sfroemken.de
Mon Jun 22 20:17:03 CEST 2009


> I read your response to my other post in this thread and if I understand
> well, all you need is a unique identifier for your plugin. The above
> code can help, but the uid will not be available if the plugin is
> inserted using TypoScript. What you can do is use a register, as
> mentioned above, but increase it each time, such as:
> 
> $GLOBALS['TSFE']->register['myplugin'] =
> $GLOBALS['TSFE']->register['myplugin']++;

I just try it...thank you. You only need the last line
 > $GLOBALS['TSFE']->register['myplugin']++;
and it works :-)

Yeahhh :-)

Stefan




More information about the TYPO3-dev mailing list