Feature #85590
closed
Hooks for DatabaseRecordList CSV actions
Added by Guido Schmechel about 6 years ago.
Updated almost 4 years ago.
Description
Use case:
We would like customize the csv file before the download starts.
Possible hooks:
- customizeCsvInit (So it is possible to rewrite the csv headline)
- customizeCsvRow (So it is possible to change or remove single entries or lines)
- Description updated (diff)
- Related to Feature #71321: CSV-Export: Alternative names for columns added
- Status changed from New to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
I just tried to use these hooks in 9.5.22 and they seem to have no effect at all. I even set a breakpoint in the TYPO3 Source Code in \TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList::renderListRow($table, $row, $cc, $titleCol, $thumbsCol, $indent = 0) before line 1546 before the hook customizeCsvRow should be processed. This code seems never to be reached when exporting CSV data in list module in single table view. Even when I removed all soure code from method renderListRow() for testing purposes, the list module still renders its record tables and the CSV export in the single table view of the list module still exports CSV data. So is this functionality broken or just not used at all?
Also available in: Atom
PDF