[TYPO3-dev] Referencing files instead of copying

Ernesto Baschny [cron IT] ernst at cron-it.de
Tue May 9 11:17:11 CEST 2006


Kasper Skårhøj schrieb am 09.05.2006 10:44:

> Conceptually it is forbidden to have M-1 references to files in
> "uploads/" so what you are asking is not a switch in the install tool
> but a new file-field type that doesn't copy the file but references it
> (like other records could so do as well). This has been planned for a
> long time but I don't know if anyone is actively working on it. It is
> not a simple patch, it must be implemented so the reference table and
> everything else acknowledges the status of a reference and not a 1-1
> relation (so for instance the file is not deleted when a refering record
> is).

This is what dam_ttcontent already does, and what other extensions can
also do:

- add a dependency to DAM
- user has to upload its files through "dam"
- add a new field for this MM reference (using the txdam_getMediaTCA call)
- in TypoScript, use DAM methods (tx_dam_tsfe->fetchFileList) to get the
list of files at the place you need them.

I could imagine extensions that do what dam_ttcontent does to tt_content
doing it to other "popular" extensions (news, etc).

Changing the behavior of this kind of TCA field:

                'type' => 'group',
                'internal_type' => 'file',
                'uploadfolder' => 'uploads/pics',

is probably very complex, but maybe even possible. I think noone is
working on that, yet.

Cheers,
Ernesto




More information about the TYPO3-dev mailing list