Skip to content
Snippets Groups Projects
Commit 3e1ea9bb authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[TASK] Allow to distinguish between file and folder rows in FileList

To allow further improvements of the FileList, it is
important to be able to distinguish between file and
folder rows.

This is done by adding data attributes to the corresponding
table rows. Besides the type (file or folder), also relevant
identifiers, e.g. folder identifier or sys_file uid, are added.

Additionally the addElement() method, building the table
rows, is cleaned up as it was obviously just copied from
DatabaseRecordList and therefore contained a lot of unused
and - in this context - wrong functionality (e.g. fetching a
possible l10n_parent from the data array).

Resolves: #94522
Releases: master
Change-Id: Ib4dbccb8d0957956ca46cdacdefb7e1a71fb9fe7
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69799


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarJochen <rothjochen@gmail.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarJochen <rothjochen@gmail.com>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
parent 8d1ed2dc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment