Project

General

Profile

Actions

Feature #24019

open

Epic #93528: Backlog of UX ideas for Editors

Enhance IRRE to allow new records to appear at the top

Added by Andreas Kiessling over 13 years ago. Updated 11 months ago.

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

0%

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

Description

The current implementation always adds new IRRE records after all or after an already existing record.
There are some cases, when the ordering of the list is not relevant or if you sort the records e.g. by date, the newest one should be displayed at the top.
If the list of records is very long, the only visual feedback you get is a growing scrollbar, so some people might click "Create new" several times until they realize the that something happend.

Solution: add new config option "newRecordPosition" in the appearance section
prototype already has actions to make a "Insertion.Top", so the only big change is to let IRRE use that function and reorder the list of records right.

How to test:
- install the extension "irre_tutorial" and import the sample t3d to get something to work on
- add this to your extTables.php to create all new relations at the top:

t3lib_div::loadTCA('tx_irretutorial_1ncsv_hotel');
t3lib_div::loadTCA('tx_irretutorial_1nff_hotel');
t3lib_div::loadTCA('tx_irretutorial_mnasym_hotel');
t3lib_div::loadTCA('tx_irretutorial_mnattr_hotel');
t3lib_div::loadTCA('tx_irretutorial_mnmmasym_hotel');
t3lib_div::loadTCA('tx_irretutorial_mnsym_hotel');

$GLOBALS['TCA']['tx_irretutorial_1ncsv_hotel']['columns']['offers']['config']['appearance']['newRecordPosition'] = 'top';
$GLOBALS['TCA']['tx_irretutorial_1nff_hotel']['columns']['offers']['config']['appearance']['newRecordPosition'] = 'top';
$GLOBALS['TCA']['tx_irretutorial_mnasym_hotel']['columns']['offers']['config']['appearance']['newRecordPosition'] = 'top';
$GLOBALS['TCA']['tx_irretutorial_mnattr_hotel']['columns']['offers']['config']['appearance']['newRecordPosition'] = 'top';
$GLOBALS['TCA']['tx_irretutorial_mnmmasym_hotel']['columns']['offers']['config']['appearance']['newRecordPosition'] = 'top';
$GLOBALS['TCA']['tx_irretutorial_mnsym_hotel']['columns']['branches']['config']['appearance']['newRecordPosition'] = 'top';

If you want to check one level deeper, you can add something like this:
$GLOBALS['TCA']['tx_irretutorial_1ncsv_offer']['columns']['prices']['config']['appearance']['newRecordPosition'] = 'top';

Note: there will be an error on saving records on the page "m:n asymmetric combo", but this has nothing do to with the patch.
See http://bugs.typo3.org/view.php?id=15996 for that.

For the pending documentation: === doc_core_api (4.5) ===

Chapter: Table Configuration Array, $TCA
Part: ['columns'][fieldname]['config'] / TYPE: "inline"

Field: appeareance:
newRecordPosition (string)
Values: 'top', 'bottom' - default: 'bottom'
Defines where the new record is inserted in the list of records.
(issue imported from #M16350)


Files

16350_v1.patch (2.57 KB) 16350_v1.patch Administrator Admin, 2010-11-11 12:12
16350_v2.patch (8.34 KB) 16350_v2.patch Administrator Admin, 2010-11-16 00:35

Related issues 7 (0 open7 closed)

Related to TYPO3 Core - Feature #23954: Create new Element Button always inserts new record at the bottomClosed2010-11-05

Actions
Related to TYPO3 Core - Feature #78532: Improve way of adding a new image reference in TCE FormsClosed2016-11-01

Actions
Related to TYPO3 Core - Feature #83858: Add option to change the insert position for inline elements (IRRE)Closed2018-02-12

Actions
Related to TYPO3 Core - Bug #84695: New irre elements appear outside of the current viewClosed2018-04-11

Actions
Related to TYPO3 Core - Bug #87797: IRRE - Position of new elementsClosed2019-02-26

Actions
Related to TYPO3 Core - Feature #85986: Create new inline record before the existing onesClosed2018-08-27

Actions
Related to TYPO3 Core - Feature #91788: Let editor choose where to insert file in selectorClosed2020-07-13

Actions
Actions #1

Updated by Andreas Kiessling over 13 years ago

Category should have been "Inline Relational Record Editing (IRRE) "
Can somebody please adjust that?

Actions #2

Updated by Andreas Kiessling over 13 years ago

v2 adds new config setting 'auto' for newRecordPosition as suggested in http://bugs.typo3.org/view.php?id=16264
With both "Create new'-Links, clicking on the top one inserts the new record at the top, clicking on the bottom link inserts the new record at the bottom.

Example config:t3lib_div::loadTCA('tx_irretutorial_1ncsv_hotel');
$GLOBALS['TCA']['tx_irretutorial_1ncsv_hotel']['columns']['offers']['config']['appearance']['levelLinksPosition'] = 'both';
$GLOBALS['TCA']['tx_irretutorial_1ncsv_hotel']['columns']['offers']['config']['appearance']['newRecordPosition'] = 'auto';

t3lib_div::loadTCA('tx_irretutorial_1nff_hotel');
$GLOBALS['TCA']['tx_irretutorial_1nff_hotel']['columns']['offers']['config']['appearance']['levelLinksPosition'] = 'both';
$GLOBALS['TCA']['tx_irretutorial_1nff_hotel']['columns']['offers']['config']['appearance']['newRecordPosition'] = 'auto';

t3lib_div::loadTCA('tx_irretutorial_mnasym_hotel');
$GLOBALS['TCA']['tx_irretutorial_mnasym_hotel']['columns']['offers']['config']['appearance']['levelLinksPosition'] = 'both';
$GLOBALS['TCA']['tx_irretutorial_mnasym_hotel']['columns']['offers']['config']['appearance']['newRecordPosition'] = 'auto';

t3lib_div::loadTCA('tx_irretutorial_mnattr_hotel');
$GLOBALS['TCA']['tx_irretutorial_mnattr_hotel']['columns']['offers']['config']['appearance']['levelLinksPosition'] = 'both';
$GLOBALS['TCA']['tx_irretutorial_mnattr_hotel']['columns']['offers']['config']['appearance']['newRecordPosition'] = 'auto';

t3lib_div::loadTCA('tx_irretutorial_mnsym_hotel');
$GLOBALS['TCA']['tx_irretutorial_mnsym_hotel']['columns']['offers']['config']['appearance']['levelLinksPosition'] = 'both';
$GLOBALS['TCA']['tx_irretutorial_mnsym_hotel']['columns']['branches']['config']['appearance']['newRecordPosition'] = 'auto';

t3lib_div::loadTCA('tx_irretutorial_mnmmasym_hotel');
$GLOBALS['TCA']['tx_irretutorial_mnmmasym_hotel']['columns']['offers']['config']['appearance']['levelLinksPosition'] = 'both';
$GLOBALS['TCA']['tx_irretutorial_mnmmasym_hotel']['columns']['offers']['config']['appearance']['newRecordPosition'] = 'auto';

Actions #3

Updated by Chris topher over 13 years ago

Fixed the category.

Actions #4

Updated by Andreas Kiessling over 13 years ago

Thanks.

Actions #5

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

See also http://bugs.typo3.org/view.php?id=16264
This patch here would solve a great usability problem.

Actions #6

Updated by Andreas Kiessling about 13 years ago

Too late for 4.5 now, has to wait for 4.6

Actions #7

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

  • Target version changed from 0 to 4.6.0

Is it's again to late for 4.6 ?

Actions #8

Updated by Chris topher over 12 years ago

  • Target version changed from 4.6.0 to 4.6.1
Actions #9

Updated by Chris topher over 12 years ago

  • Target version changed from 4.6.1 to 4.6.2
Actions #10

Updated by Xavier Perseguers about 12 years ago

  • Target version deleted (4.6.2)
Actions #11

Updated by Thorsten Kahler almost 12 years ago

  • Category set to 978
Actions #12

Updated by Georg Ringer over 9 years ago

  • Status changed from New to Resolved

config $config['appearance']['levelLinksPosition'] can be set to "'top', 'bottom', 'both', 'none'@".

Actions #13

Updated by Andreas Kiessling over 9 years ago

Georg Ringer wrote:

config $config['appearance']['levelLinksPosition'] can be set to "'top', 'bottom', 'both', 'none'@".

But that just affects the position of the button and not where new records are placed!

Actions #14

Updated by Alexander Opitz over 9 years ago

  • Status changed from Resolved to Accepted

@Andreas Otto †
Can you please update your patch with jQuery?

Actions #15

Updated by Abin Sabu about 9 years ago

Hi guys.

Do you have any work around for this problem!!

Abin

Actions #16

Updated by Abin Sabu about 9 years ago

Andreas Kiessling wrote:

Georg Ringer wrote:

config $config['appearance']['levelLinksPosition'] can be set to "'top', 'bottom', 'both', 'none'@".

But that just affects the position of the button and not where new records are placed!

Guys

Yea it affects the botton postion.No change for new record!!

Abin Sabu

Actions #17

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

Abin Sabu wrote:

Hi guys.

Do you have any work around for this problem!!

Abin

There is a patch on the top of this ticket. I tested it 4 years ago, it worekd.

Actions #18

Updated by Riccardo De Contardi almost 7 years ago

  • Related to Feature #78532: Improve way of adding a new image reference in TCE Forms added
Actions #19

Updated by Tymoteusz Motylewski about 6 years ago

  • Related to Feature #83858: Add option to change the insert position for inline elements (IRRE) added
Actions #20

Updated by Riccardo De Contardi almost 6 years ago

  • Related to Bug #84695: New irre elements appear outside of the current view added
Actions #21

Updated by Georg Ringer about 5 years ago

  • Related to Bug #87797: IRRE - Position of new elements added
Actions #22

Updated by Riccardo De Contardi almost 5 years ago

  • Related to Feature #85986: Create new inline record before the existing ones added
Actions #23

Updated by Anonymous over 3 years ago

This would still be AWESOME to have in 2020!

Actions #24

Updated by Riccardo De Contardi over 3 years ago

  • Related to Feature #91788: Let editor choose where to insert file in selector added
Actions #25

Updated by Christian Toffolo over 3 years ago

Instead of simply allow new IRRE records to appear at the top, it would be better to imitate List Module behavior: a [+] button at the top of the records list to add the new IRRE record as first and a [+] button in each IRRE record to add the new record after the one with the button.

Actions #26

Updated by Christian Toffolo 11 months ago

  • Parent task set to #93528
Actions

Also available in: Atom PDF