[Typo3-dev] Observe creation of content elements

Martin T. Kutschker Martin.T.Kutschker at blackbox.net
Tue Apr 20 18:03:17 CEST 2004



Mathias Schreiber [K1net] wrote:
> 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.

How do you handle page expiry and access control?

Writing the files on the disk is fine. But not in the root dir but some 
cache directory. Then you'll could write a Apache module that implements 
the expiry and access control part, but has the advantage it can serve 
the file directly.

Masi





More information about the TYPO3-dev mailing list