Feature #24019
openEpic #93528: Backlog of UX ideas for Editors
Enhance IRRE to allow new records to appear at the top
0%
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
Updated by Andreas Kießling almost 14 years ago
Category should have been "Inline Relational Record Editing (IRRE) "
Can somebody please adjust that?
Updated by Andreas Kießling almost 14 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';
Updated by Webadmin no-lastname-given over 13 years ago
See also http://bugs.typo3.org/view.php?id=16264
This patch here would solve a great usability problem.
Updated by Andreas Kießling over 13 years ago
Too late for 4.5 now, has to wait for 4.6
Updated by Webadmin no-lastname-given almost 13 years ago
- Target version changed from 0 to 4.6.0
Is it's again to late for 4.6 ?
Updated by Chris topher almost 13 years ago
- Target version changed from 4.6.0 to 4.6.1
Updated by Chris topher over 12 years ago
- Target version changed from 4.6.1 to 4.6.2
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'@".
Updated by Andreas Kießling 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!
Updated by Alexander Opitz over 9 years ago
- Status changed from Resolved to Accepted
@Andreas Otto †
Can you please update your patch with jQuery?
Updated by Abin Sabu over 9 years ago
Hi guys.
Do you have any work around for this problem!!
Abin
Updated by Abin Sabu over 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
Updated by Webadmin no-lastname-given over 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.
Updated by Riccardo De Contardi over 7 years ago
- Related to Feature #78532: Improve way of adding a new image reference in TCE Forms added
Updated by Tymoteusz Motylewski over 6 years ago
- Related to Feature #83858: Add option to change the insert position for inline elements (IRRE) added
Updated by Riccardo De Contardi over 6 years ago
- Related to Bug #84695: New irre elements appear outside of the current view added
Updated by Georg Ringer over 5 years ago
- Related to Bug #87797: IRRE - Position of new elements added
Updated by Riccardo De Contardi over 5 years ago
- Related to Feature #85986: Create new inline record before the existing ones added
Updated by Anonymous about 4 years ago
This would still be AWESOME to have in 2020!
Updated by Riccardo De Contardi almost 4 years ago
- Related to Feature #91788: Let editor choose where to insert file in selector added
Updated by Christian Toffolo almost 4 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.