Project

General

Profile

Actions

Feature #23954

closed

Create new Element Button always inserts new record at the bottom

Added by Webadmin no-lastname-given over 13 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2010-11-05
Due date:
% Done:

0%

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

Description

If you have configured 'newRecordLinkPosition' => 'both' in TCA the Button at the top of the list always inserts the new element at the bottom and not as expected on the top.

For a long list, it would be very helpful, to get a new element on the top.

(issue imported from #M16264)


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Feature #24019: Enhance IRRE to allow new records to appear at the topAccepted2010-11-11

Actions
Actions #1

Updated by Andreas Kiessling over 13 years ago

Check out http://bugs.typo3.org/view.php?id=16350
The patch is pending in core list. Please try out and give feedback there.
It does not check which button is clicked, but you can set the position where to insert the new record.

Actions #2

Updated by Webadmin no-lastname-given over 13 years ago

I think this patch will not solve this issue. If we have an insert button on top, it should insert new elements by default on top and an insert button at the bottom should insert new elements at the bottom.

I think your patch could be a good way to manipulate this default behavoiur.

Actions #3

Updated by Andreas Kiessling over 13 years ago

Changing the default behaviour to always insert new records at the top, if the button is at the top will probably break a lot of setups.
How about a parameter for "newRecordPosition" like "buttonPosition" to toggle that behaviour?

Actions #4

Updated by Webadmin no-lastname-given over 13 years ago

It would be fine if the parameter "newRecordPosition" although has the value "auto" to force an insert at top or bottom depending on the button position (if the "bottomPosition" is set to "both")

Actions #5

Updated by Andreas Kiessling over 13 years ago

I've updated the patch. Please test.
It is against 4.5 trunk but applies to 4.4 trunk with some offset.

Actions #6

Updated by Webadmin no-lastname-given about 13 years ago

The attached patch works fine in 4.5. It would solve our problem.

Actions #7

Updated by Thorsten Kahler almost 12 years ago

  • Category set to 978
  • Target version deleted (0)
Actions #8

Updated by Alexander Opitz over 9 years ago

Closing as duplicate of feature #24019

Actions #9

Updated by Susanne Moog over 8 years ago

  • Status changed from New to Closed

Closed in light of comment #8.

Actions

Also available in: Atom PDF