[TYPO3-core] RFC: Bug #6039: TCA group -> file absolute path without uploadfolder (extended)

Ingmar Schlecht ingmar at typo3.org
Thu Feb 28 09:37:21 CET 2008


Hi Martin,

I have a similar patch lying around, which achieves the same by adding a 
new internal_type to group fields called "file_references".

Anyway, I guess this feature will have to wait for TYPO3 4.3.

cheers
Ingmar

Martin Borer schrieb:
> This is a SVN patch request.
> 
> Problem:
> In some Extensions (tt_news, mailformplus etc.) the "uploadfolder" 
> Option in TCA(group) fields is empty.
> The selected file(s) will not be copied to an upload folder. Only 
> absolute Path to the original file is stored -> used to prevent multiple 
> versions of one file in different records.
> 
> There are following Problems with an empty "uploadfolder" Option:
> - error with Thumbnails
> - no file references
> - upload field is unnecessary
> - filename isn't identifiable anymore (because the whole long path is 
> displayed in the selector box)
> 
> Solution:
> Some small changes in class.t3lib_tceforms.php, class.t3lib_tcemain.php 
> and class.t3lib_refindex.php.
> With the patch, the stored path is relative to the site root (instead of 
> absolute path).
> 
> Comments:
> I know that it isn't "Typo3 Style" to make direct relations to files in 
> the fileadmin/user_upload folder. But it is very usefull for some 
> special cases. In my case, I make video collections with large videos 
> (>50MB) and I often select the same video more than once.
> I can safe a lot of webspace with direct relations...
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=6039
> 
> Branch: TYPO3_4-2
> 
> Greets
> Martin
> 


-- 
Ingmar Schlecht
TYPO3 Association Active Member


More information about the TYPO3-team-core mailing list