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 almost 9 years ago.
Category:
FormEngine aka TCEforms
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 open — 0 closed)
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.
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.
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?
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")
I've updated the patch. Please test.
It is against 4.5 trunk but applies to 4.4 trunk with some offset.
The attached patch works fine in 4.5. It would solve our problem.
- Category set to 978
- Target version deleted (
0)
Closing as duplicate of feature #24019
- Status changed from New to Closed
Closed in light of comment #8.
Also available in: Atom
PDF