[Typo3-dev] Observe creation of content elements

Mathias Schreiber [K1net] ms at k1net.de
Mon Apr 19 22:15:53 CEST 2004


Kasper Skårhøj wrote:
> For 3.6.1 or so there will most likely be a ton of new hooks in TYPO3
> making such things possible. Having the feature you ask for has been
> requested before.
>
> Currently your best option is to make an extension class (in TYPO3
> context, also referred to as "XCLASS") of "t3lib_tcemain" where you
> can dig your way into a function like "insertDB()" or so in which you
> can trigger you function.

Quick idea:
Rig index.php to write the complete content as HTML files into the root
directory (simulateStatic filenames).
If mod_rewrite finds a file with that name, it is displayed, if not,
index.php is called, generating the fil again.
If content is changed on a specific page, we could trigger a hook to delete
the html file so the files get written again as soon as index.php is called
again.

Except for the riggon of index.php this is a purpose for hooks, right?






More information about the TYPO3-dev mailing list