[TYPO3-english] Disable caching of a plugin
Dmitry Dulepov
dmitry.dulepov at gmail.com
Tue Apr 20 09:29:41 CEST 2010
Hi!
Simon Strandgaard wrote:
> I have been looking through a lot of extensions to see how
> to add a javascript include via typoscript, but without luck.
Make a USER extension. In main() call $this->cObj->getUserObjectType(). If
it gives you tslib_cObj::OBJECTTYPE_USER, add your headers, call
$this->cObj->convertToUserIntObject() and return immediately. If that call
returns tslib_cObj::OBJECTTYPE_USER_INT, do your output.
This will work in 4.3 and newer.
--
Dmitry Dulepov
TYPO3 expert / TYPO3 security team member
Read more @ http://dmitry-dulepov.com/
More information about the TYPO3-english
mailing list