Project

General

Profile

Actions

Feature #22681

closed

Add config 'replace_single' to columns of type 'group/file'

Added by Stefan Geith over 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-05-19
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

If you have a filed of type 'group/files', that shall have only _one_file (so maxitems=1), if would be greate to have an option, that replaces the exisitng file, if you upload a new one.

At the moment, you first have to delete the existing file, before you upload a new one. This is espessially a problem, when you use 'disable_controls'=>'list' to ge a better looking form field (See #22679).

Solution:
Add option
'replace_single' => 1,
to field-config in TCA.

This should delete the exisiting entry, before adding a new one.

See attached Patch.
(issue imported from #M14432)


Files

0014432-config_replace_single.patch (1.25 KB) 0014432-config_replace_single.patch Administrator Admin, 2010-05-19 11:58
singe_image_in_be.gif (9.14 KB) singe_image_in_be.gif Administrator Admin, 2010-05-19 12:05
T3X_issue14432-0_0_1-z-201103130322.t3x (1.47 KB) T3X_issue14432-0_0_1-z-201103130322.t3x Administrator Admin, 2011-03-13 03:23
T3X_issue14432-0_0_2-z-201103131245.t3x (1.57 KB) T3X_issue14432-0_0_2-z-201103131245.t3x Administrator Admin, 2011-03-13 13:08

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #22679: Improve usability of group fieldsClosed2010-05-19

Actions
Actions

Also available in: Atom PDF