Feature #17247
closedLoad Inline Elements On Demand
0%
Description
While editing records based on IRRE the current behaviour is to load all elements at once even though the tabs containing the elements are closed.
It would be a great performance boost to load the content of each single element only when necessary, which means: Only if the element tab is activated or if the element contains form elements that are required for processing while saving the element back to the DB.
(issue imported from #M5500)
Files
Updated by Oliver Hader over 17 years ago
Just added a relation to bug #17119 because on fetching child data on demand and if there are RTE instances affected, the mentioned bug has to be fixed first.
Updated by Harald Glaser almost 16 years ago
I had the same problem - extremly slow loading of the edit form of my records (up to 50 seconds!). So I xclassed "t3lib_tceforms_inline" to do exactly what ist suggested above - loading all collapsed records dynamically only when they are expanded.
I just added the extension "cm_irre" to TER - should be available in the next hours. Feel free to try it out, feedback is welcomed.
Updated by Vladimir Podkovanov over 15 years ago
Hi Harald,
would you like to make a patch to the core with such feature, maybe to add config key (appearance.ajaxLoad = 1) to inline type to triger such load. Also would be nice to add ajax loading gif like http://www.ajaxload.info/
Updated by Andreas Wolf over 15 years ago
I'll try to incorporate this with the new TCEforms.
Updated by Alexander Stehlik about 15 years ago
+1 would love this feature.
I tried the cm_irre extension but it does not work :( The form loads much faster but when I try to unfold an inline record I get a Javascript error ($(objectId + "_fields") is null, jsfunc.inline.js (Zeile 31)). Mabe this is because the naming of the elements changed due to bug #0012152.
Updated by Vladimir Podkovanov almost 15 years ago
I can confirm that extension does't work on trunk any more.
IMHO this extension should be integrated in core and AJAX loading with IRRE should work by default, it is only way to use IRRE when number of inline records getting big or when inline records are heavy (many fields, subsequent IRRE records etc).
Updated by Harald Glaser almost 15 years ago
As the cm_irre extension no longer works with Typo3 4.3+, I packed the functionality into a patch.
Please try the file attached to this tread - feedback is welcomed.
Updated by Harald Glaser almost 15 years ago
I just added the above suggested feature to make the ajax-based loading configurable, new patch file is bug5500_configurable.diff
Ajax-loading is ON by default, to disable it for a specific item you can now use appearance.ajaxLoad = 0 in TCA.
Updated by Alexander Stehlik almost 15 years ago
Thanks for the patch Harald! It seem to work quite good but I have one issue with the expandSinge configuration.
When I expand a second inline element, the first one doesn't get collapsed. When I click on the first one twice, the second one collapses as the first one expands.
At some point, the whole system doesn't work any more. When I click on an element, that wasn't opened before, nothing happens (not even a javascript error).
Tested with Firefox 3.57 in Ubuntu Karmic (9.10)
Updated by Vladimir Podkovanov almost 15 years ago
Hi Harald, thanks for the patch. It works well except IRRE records with tabs - they do not expand, though AJAX data being properly transffered (checked by sniffing traffic) and no JS errors. I checked in FF 3.0.17
Updated by Harald Glaser almost 15 years ago
Hi & thanks for your feedback.
I'm sorry that I didn't find time to correct the patch earlier...
Attached is an updated version. The following problems should be solved:
- loading of IRRE items with tabs
- corrected expandSingle behaviour
- added loading-indicator icon
- changed hardcoded typo3/ to TYPO3_mainDir
Updated by Alexander Stehlik over 14 years ago
Hi Harald,
thank you very much for the new patch. I tested the new expandSingle behaviour and it seems to work like a charm :)
Updated by Vladimir Podkovanov over 14 years ago
Hi Harald,
I had issue with IRRE elements where expandSingle was not set. I did correct that and uploaded patch in core list in your RFC thread.
Updated by Tymoteusz Motylewski over 6 years ago
- Related to Feature #65505: Add paging for IRRE-records (working with many IRRE-entries) added