Reputation: 1067
I'm building an extension for a Typo3 6.1 site, which uses FAL. This extension works with a lot of files, so a search function would be very helpful, but I can't find it anywhere. Do, does FAL have any search function in backend for Typo3 6.1?
Upvotes: 0
Views: 1110
Reputation: 565
Just to update this old question: You can recursively search for files/folders in backend module filelist since TYPO3 version 7LTS.
Upvotes: 0
Reputation: 1344
If you are thinking of implementing a search on the files, then your repository should extend TYPO3\CMS\Core\Resource\FileRepository
which is basically a mapper to the sys_file
table.
This return a FileReference object or a list of FileReference objects, when looking up for something in the table.
FileRepository.php: http://typo3.org/api/typo3cms/_file_repository_8php_source.html
FileReference.php:
http://typo3.org/api/typo3cms/core_2_classes_2_resource_2_file_reference_8php_source.html
Upvotes: 1
Reputation: 4558
Currently, FAL does not have a file search implemented.
But you can use Extension "Media" (Key: media) which offers search and filter functionality. In the configuration of the extension you can define whether you want to use Media or "FAL" (the normal file picker) als Media Element Browser (when linking to files).
Upvotes: 1