[TYPO3-dev] disable automatic deleting of files when removed by TCE

Dmitry Dulepov dmitry.dulepov at gmail.com
Wed Oct 22 13:50:47 CEST 2008


Hi!

stefano cecere wrote:
> otherwise i'll make an XCLASS, or even better a patch for this new
> feature, if it sounds interesting for others...
> 
> what do you think?

Bad idea. This will break TYPO3 reference index and create a lot of
junk in TYPO3.

I think you can just make an extension that uses hooks in TCEmain to
copy the file to archive before it is deleted. It is better because
you can have configurable archive location and can even sort files
by table (i.e. tt_news files go to /path/to/archive/tt_news-files).
This has only advantages: nothing is broken and all archiving logic
is isolated in your extension.

-- 
Dmitry Dulepov
TYPO3 translations support
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog:
http://typo3bloke.net/post-details/get_typo3_coding_guidelines_here/




More information about the TYPO3-dev mailing list