Feature #85590

Hooks for DatabaseRecordList CSV actions

Added by Guido Schmechel almost 3 years ago. Updated 7 months ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
Start date:
2018-07-18
Due date:
% Done:

100%

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

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)


Related issues

Related to TYPO3 Core - Feature #71321: CSV-Export: Alternative names for columnsClosed2015-11-04

Actions
#1

Updated by Guido Schmechel almost 3 years ago

  • Description updated (diff)
#2

Updated by Riccardo De Contardi almost 3 years ago

  • Related to Feature #71321: CSV-Export: Alternative names for columns added
#3

Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57648

#4

Updated by Gerrit Code Review almost 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57648

#5

Updated by Guido Schmechel almost 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#6

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed
#7

Updated by Matthias Krappitz 7 months ago

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