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 #1

Updated by Stefan Geith over 14 years ago

Please see attached Screenshot

Actions #2

Updated by Alexander Stehlik over 14 years ago

+1 on reading and testing

This is really useful. Thanks a lot!

Actions #3

Updated by Alexander Stehlik over 13 years ago

Patch was submitted to Gerrit:

https://review.typo3.org/#change,1142

I attached an extension to make testing a bit easier.

Actions #4

Updated by Alexander Stehlik over 13 years ago

  • Target version deleted (0)

This was fixed in f92873b30c59ca7bc7902617991175834589a11e and can be closed.

Actions #5

Updated by Stefan Galinski over 11 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF